[Zope] Redirecting from Python?
Christian Scholz
cs@comlounge.net
Fri, 4 Aug 2000 23:22:21 +0200
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 cs@comlounge.net