Re: [Zope] How to make a ZPT-based form that calls itself? (Part II)

2005-05-19 Thread Lennart Regebro
On 5/19/05, Ken Winter [EMAIL PROTECTED] wrote: The difference between this and the deletion example is that this form (personform.htm) need to be called with an argument, giving the person_id that identifies the record it is supposed to display. I have tried a number of ways to sneak this

RE: [Zope] How to make a ZPT-based form that calls itself? (Part II)

2005-05-19 Thread Ken Winter
-Original Message- From: Lennart Regebro [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 2005 4:36 AM To: [EMAIL PROTECTED] Cc: J Cameron Cooper; zope@zope.org Subject: Re: [Zope] How to make a ZPT-based form that calls itself? (Part II) On 5/19/05, Ken Winter [EMAIL PROTECTED]

Re: [Zope] How to make a ZPT-based form that calls itself? (Part II)

2005-05-19 Thread Lennart Regebro
On 5/19/05, Ken Winter [EMAIL PROTECTED] wrote: * I assume you include data retrieved from (and updated in) an underlying relational database. * Does data also include parameters (or arguments, or query string variables, or whatever you call them) passed from one HTML page to the next?

RE: [Zope] How to make a ZPT-based form that calls itself? (Part II)

2005-05-19 Thread Ken Winter
-Original Message- From: Lennart Regebro [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 2005 11:07 AM To: [EMAIL PROTECTED] Cc: J Cameron Cooper; zope@zope.org Subject: Re: [Zope] How to make a ZPT-based form that calls itself? (Part II) On 5/19/05, Ken Winter [EMAIL

Re: [Zope] How to make a ZPT-based form that calls itself? (Part II)

2005-05-19 Thread Lennart Regebro
What's wrong with this picture? This: context.REQUEST.RESPONSE.redirect('personform.htm') When you do this, you loose everything in the form. When you then in the personform.htm do context.REQUEST.person_id you get a key-error. -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content

RE: [Zope] How to make a ZPT-based form that calls itself? (Part II)

2005-05-19 Thread Ken Winter
-Original Message- From: Lennart Regebro [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 2005 12:03 PM To: [EMAIL PROTECTED] Cc: J Cameron Cooper; zope@zope.org Subject: Re: [Zope] How to make a ZPT-based form that calls itself? (Part II) What's wrong with this picture?

Re: [Zope] How to make a ZPT-based form that calls itself? (Part II)

2005-05-19 Thread Lennart Regebro
On 5/19/05, Ken Winter [EMAIL PROTECTED] wrote: But that just changed the error to KeyError: 'personform_htm'. Well, it's 'personform.htm', not undescore, right? -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/

RE: [Zope] How to make a ZPT-based form that calls itself? (Part II)

2005-05-19 Thread Tino Wildenhain
Am Donnerstag, den 19.05.2005, 11:56 -0400 schrieb Ken Winter: -Original Message- From: Lennart Regebro [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 2005 11:07 AM To: [EMAIL PROTECTED] Cc: J Cameron Cooper; zope@zope.org Subject: Re: [Zope] How to make a ZPT-based form

RE: [Zope] How to make a ZPT-based form that calls itself? (Part II)

2005-05-18 Thread Ken Winter
In Part I, J Cameron Cooper showed me how to write a ZPT-based form that displayed a list of database records and gave the user a chance to delete one of them, after which the form redisplayed itself with a refreshed list that reflected the deletion just performed. The core of this was this

Re: [Zope] How to make a ZPT-based form that calls itself? (Part II)

2005-05-18 Thread Paul Winkler
On Wed, May 18, 2005 at 07:32:29PM -0400, Ken Winter wrote: The difference between this and the deletion example is that this form (personform.htm) need to be called with an argument, giving the person_id that identifies the record it is supposed to display. I have tried a number of ways to