On Saturday 10 September 2005 11:05, Florian Lindner wrote: > 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?
Use INameChooser or implement an alternate __setitem__ method in your container code. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training _______________________________________________ Zope3-users mailing list Zope3firstname.lastname@example.org http://mail.zope.org/mailman/listinfo/zope3-users