> I have this interface:
>
> class INews(IPage):
>     """A news page for the application.
>     """
>
>     date = Date(
>         title=_(u"Publication Date"),
>         description=_(u"The intended date for this news"),
>         default=date.today(),
>         required=False
>         )
>   
With formlib (in Five in fact, not with Zope3) I was creating
form_fields that should have dynamic defaults in __call__
method of formlib's AddForm (EditForm)
view. I think it is not nice solution so I'd love to see
better way of doing this.

-- 
Maciej Wisniowski
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to