[Zope3-dev] addforms - ordering issue

Garrett Smith garrett@mojave-corp.com
Sat, 28 Jun 2003 17:06:35 -0500


Field values are being assigned to a recently created component *after*
an item is added via its view's add method.

I realize that the addform takes a 'set_before_add' attribute, but it
seems to me that this should be the default behavior. I.e. when I handle
an 'add' in my addform view, I would expect that item's to be set, at
least by default. If, for some reason, I want some fields configured
after the add, I can specify 'set_after_add' in the addform declaration.

Maybe I'm, missing something, but can't we remove the 'set_before_add'
attribute? The default behavior would be to set fields *before* the add
unless 'set_after_add' said otherwise.

 -- Garrett