[Zope3-Users] set_before_add
gnotari at linkgroup.it
gnotari at linkgroup.it
Fri Oct 14 09:36:09 EDT 2005
I'm at loss:
I'm replicating the example at cap. 14.3 of Philipp's (Worldcookery) book.
It's all about auto-assigning names to object being added to containers.
After much tinkering, it does seem to me that this directive
<browser:addform
...
...
set_before_add="id"
>
is not working at all.
I throughly checked my NameChooser derived class, and verified it works if
I make it return some static "name".
But if I set my NameChooser to use the new object's id attribute (as per
example) and try to Add the object, I'm not asked for the "id" and
immediately get the error "An empty name was provided. Names cannot be
empty."
Any clue about what's happening?
ciao
Guido
More information about the Zope3-users
mailing list