[Zope] redirect after python script

Jeff Peterson jpeterso@rangebroadband.com
Thu, 7 Mar 2002 18:33:25 -0600


or

[script]

context.REQUEST.set('id', value)
return context.newPageTemplate(context)


it will then be in the REQUEST namespace.



> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
> Carlos de la Guardia
> Sent: Thursday, March 07, 2002 6:20 PM
> To: Zope List
> Subject: Re: [Zope] redirect after python script
> 
> 
> You can do that with:
> 
> number=5
> redirect_url='viewCustomer?id='+number
> context.REQUEST.RESPONSE.redirect(redirect_url)
> 
> Carlos de la Guardia
> Aldea Systems
> 
> 
> On Thu, 7 Mar 2002 17:59:25 -0500 Chad Nantais 
> <cnantais@rednaxel.com> wrote:
> 
> > I have a script that processes a form. I want that script to send a
> > value to
> > the url of a page template (eg. viewCustomer?id=5).
> > 
> > What line of python will do this?
> > 
> > 
> > 
> 
> 
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>