[Zope3-Users] interrupt formlib and AddForm

Peter Koppatz peter.koppatz at sudile.com
Sat Jan 13 14:54:23 EST 2007


with formlib I want's to add a new object to a container. This is  
done with AddForm.
If an object with the same name already exists  I want to redirect to  
this  object in the container.

How is this achieved?

The last line I found with google but  dosn't work because there is  
no package with a method getAbsoluteURL.

def create(self, data):
         if data['name'] in self.context.__parent__:

Thanks I advance,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-users/attachments/20070113/37e4d5a9/attachment.htm

More information about the Zope3-users mailing list