[Zope3-dev] change addform default property setting
Gary Poster
gary@modernsongs.com
Thu, 19 Jun 2003 22:26:32 -0400
I propose changing the default property setting time in an add form from
set_after_add to set_before_add.
Rationale:
AFAIK the add event is fired after the object is added to the folder.
This is before set_after_add. Any code that wants to react to this
event--an index, for instance--will only see the attributes set up to
that point. set_after_add attributes are unset. This is inconvenient
for cataloging new objects.
It is very useful to have the ability to set attributes after the object
has been contextually wrapped (set_after_add's purpose, I assume) but I
propose that this requirement is the exception, not the rule.
A better solution that I'm not sure how to implement: the add event is
postponed until after set_after_add.
Thoughts? Corrections?
Gary