[Grok-dev] How do I get current day as default in interface schema definition?
Sebastian Ware
sebastian at urbantalk.se
Tue Feb 17 06:41:40 EST 2009
I am realising that the current schema definition default value is
useless since it is evaluated only at startup. Is there some way to
get grok to reevaluate the default value in a schema definition at
runtime? Or is there some other recommended way of passing the current
day as default to the add form?
class IStory(Interface):
publish_date = schema.Date(title=u'Publish Date', required = False,
default=date.today())
Mvh Sebastian
More information about the Grok-dev
mailing list