[Zope] how to avoid a redirect ?

Dieter Maurer dieter@handshake.de
Tue, 20 May 2003 20:35:29 +0200


Joachim Schmitz wrote at 2003-5-20 20:05 +0200:
 > Dieter Maurer wrote:
 > > Joachim Schmitz wrote at 2003-5-16 20:44 +0000:
 > >  > or better how to finish a transaction programmaticaly ?
 > > 
 > > You may look at my "EmulatedRedirect" External Method:
 > > 
 > >   <http://www.dieter.handshake.de/pyprojects/zope>
 > 
 > I tried to use it, but if I call it with:
 > 
 > return context.emulateRedirectURL('content/list',transaction="commit")
 > 
 > I always get a Not found error:
 > 
 > User Name (User Id)
 > company-admin (company-admin)
 > Request URL
 > http://company.vcs.aixtraware.de/content
 > Exception Type
 > NotFound
 > Exception Value
 > http://company.vcs.aixtraware.de/content [ /list ]
 > 
 > eventhough the object
 > 
 > http://company.vcs.aixtraware.de/content/list exists

Are your running in non-debug mode?

  HTTP/1.1 allows servers to cheat with the "NotFound" HTTP response.
  It can be used whenever the server does not want to give more
  precise information about the problem.

Try running in debug mode.

If this does not help, debug the "traverse" in "emulateRedirectURL".


Dieter