[Zope3-Users] Calling createAndAdd with different object id

Alen Stanisic alen.stanisic at gmail.com
Sat Sep 10 21:52:51 EDT 2005


I don't think you would do it in AddView.  You need to implement an
adapter for your container providing
zope.app.container.interfaces.INameChooser where chooseName() method
will return name for you objects.

Alen

On Sat, 2005-09-10 at 17:05 +0200, Florian Lindner wrote:
> Hello,
> I want to override the createAndAdd method mothed in a view class. Since I 
> don't want to do all the work I want to derive my class from the AddView 
> class from /home/florian/Zope3/src/zope/app/form/browser/add.py. The only 
> thing I do in my class is to change the name (object id) of the object to be 
> created. In the arguments of the createAndAdd method I have not found any 
> information about the id. How can I alter the name?
> 
> Thanks,
> 
> Florian
> _______________________________________________
> Zope3-users mailing list
> Zope3-users at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users



More information about the Zope3-users mailing list