[Zope3-Users] Re: Computed default in zope schema

Fred Drake fdrake at gmail.com
Fri Oct 12 10:17:26 EDT 2007


On 10/12/07, Raphael Ritz <r.ritz at biologie.hu-berlin.de> wrote:
> Last time this came up here (which is quite a while ago) this was
> not supported. Don't know if that changed.

This isn't currently part of zope.schema.  Exactly what the right
thing is isn't clear (at least to me).

Sometimes, when filling in forms, the default value can reasonably be
computed before the initial display, and at other times is needs to
happen when the form is processed at the end.  This might be because
the default value requires other inputs as part of the computation, or
because it's time-sensitive.


  -Fred

-- 
Fred L. Drake, Jr.    <fdrake at gmail.com>
"Chaos is the score upon which reality is written." --Henry Miller


More information about the Zope3-users mailing list