[Zope3-Users] How to pass an added object to redirected page
TAHARA Yusei
yusei at domen.cx
Fri Oct 21 00:04:01 EDT 2005
Hello.
On Thu, 20 Oct 2005 20:20:17 -0700
Naotoshi Seo <sonots at sonots.com> wrote:
> So, this is just redirecting to different page after users add object.
> I have no idea to access to the data of the added object at
> 'nexturl.html'. If possible, I can show what users inputted.
You can use "add" method in view class.
from zope.app.zapi import absoluteURL
class MyAddView:
def add(self, content):
content = self.context.add(content) # you need locatable object.
self.next_url = absoluteURL(content, self.request)
def nextURL(self):
return self.next_url
Best Regards,
--
Tahara Yusei
yusei at domen.cx
More information about the Zope3-users
mailing list