[Zope3-Users] Calling createAndAdd with different object id

Alen Stanisic alen.stanisic at gmail.com
Sun Sep 11 21:24:36 EDT 2005


In INameChooser

chooseName(self, name, object)

method takes default object name and the object you are adding.  Thru
this object I would expect you to have access to attributes of your
object entered in the objects add form.  Unless the fields in your
form you need access to are not in your object's schema.  If this is
the case not sure if you could maybe extend your persistent schema
interface with another interface containing your non-persistent fields
and somehow have access to those in chooseName().  Haven't tried this
though :)

Alen

On 9/11/05, Florian Lindner <mailinglists at xgm.de> wrote:
> A INameChooser adapter would really be perfect for me. But I need access to
> the form data of the add form. And AFAIK I don't have this using the
> NameChooser. You now a way to get the form data in the NameChooser?
> 
> Thanks,
> 
> Florian


More information about the Zope3-users mailing list