Re: [Zope3-Users] Add and Edit form

2006-05-12 Thread Cliff Ford
Hi John, John Smith wrote: I am a little unclear into which object I should add the nextURL method. In myclass/browser/configure.zcml I have addMenuItem and addForm directives. I have tried adding the nextURL method to the class specified in the 'class' parameter of the addForm directive. That

Re: [Zope3-Users] Add and Edit form

2006-05-12 Thread Cliff Ford
Fred Drake wrote: On 5/12/06, Cliff Ford <[EMAIL PROTECTED]> wrote: This is an example mextURL function that I used to add a folder containing a page, and then go to the folder. Going to the page is just an addition to the last line. This is very confusing. Why are you creating new conten

RE: [Zope3-Users] Add and Edit form

2006-05-12 Thread David Johnson
?         From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Smith Sent: Friday, May 12, 2006 10:41 AM To: Zope3-users@zope.org Subject: Re: [Zope3-Users] Add and Edit form   I am a little unclear into which object I should add the nextURL method. In myclass/browser/configure.zcml I

Re: [Zope3-Users] Add and Edit form

2006-05-12 Thread John Smith
I am a little unclear into which object I should add the nextURL method.In myclass/browser/configure.zcml I have addMenuItem and addForm directives. I have tried adding the nextURL method to the class specified in the 'class' parameter of the addForm directive. That does not work.Stephan

Re: [Zope3-Users] Add and Edit form

2006-05-12 Thread Fred Drake
On 5/12/06, Cliff Ford <[EMAIL PROTECTED]> wrote: This is an example mextURL function that I used to add a folder containing a page, and then go to the folder. Going to the page is just an addition to the last line. This is very confusing. Why are you creating new content in nextURL()? Should

Re: [Zope3-Users] Add and Edit form

2006-05-12 Thread Cliff Ford
This is an example mextURL function that I used to add a folder containing a page, and then go to the folder. Going to the page is just an addition to the last line. HTH Cliff def nextURL(self): """ This function is called for redirection after folder creation. We can use

Re: [Zope3-Users] Add and Edit form

2006-05-12 Thread Stephan Richter
On Friday 12 May 2006 09:36, John Smith wrote: >  a) there is something already in zope3 that I don't know about :) Add forms, both zope.app.form and zope.formlib.form allow you to specify a "nextURL" method. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph