Hi!

On Fri, Aug 04, 2000 at 12:49:52PM -0500, Christopher J. Kucera wrote:


> I'm working on a Product, and I'd like to be able to do a RESPONSE.redirect()
> from inside the Python code.  What I had was basically this:

[...]

> def someConditions(self):
>   if (some number of conditions):
>     return 1
>   else:
>     self.REQUEST.RESPONSE.redirect('blahblahblah')

You actually should use something like this:

    raise 'Redirect','http://my.server/my/path'

-- christian

-- 
Christian Scholz                                               MrTopf@IRC
COM.lounge                                          http://comlounge.net/
communication & design                                   [EMAIL PROTECTED]

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
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 )

Reply via email to