> Betreff: [Zope3-Users] "raise Redir(newurl)" not working -
> can someoneconfirm this?
> In my application, namely for URL-Rewriting for session
> handling, I need to stop the current request and redirect to
> another url (including the session key).
> For that reason, I issue the following statement:
> from zope.publisher.interfaces import Redirect raise
I always use self.request.response.redirect(url)
I'm not sure how raise Redirect works.
> Theoretically, this exception should be caught by the
> publisher and a redirect should be done, unfortunately not in my case:
> Traceback (most recent call last):
> line 130, in publish
> obj = request.traverse(obj)
> line 72, in getClientId
> raise Redirect(redir_url)
Are you trying to redirect to the favicon.ico?
> I don't know why this happens, *maybe* that's due to
> inclusion of some 3rd party packages, e.g. z3c.layer.pagelet?
> To confirm this, I'd like to know if this scenario is only
> happening for me, so, can you please simply insert the above
> statement in some arbitrary view and tell me if it works?
I'm not 100% sure but,
Note, if you use redirect you have to take care when you
are doing this. You can only do this in the view call
but not if the pagelet renders the template, because that's
too late. This is not pagelet specific, that's also the case
if you render a template in a BrowserPage?
> Best Regards,
> [EMAIL PROTECTED]
> GPG key ID: 299893C7 (on keyservers)
> FP: 0124 2584 8809 EF2A DBF9 4902 64B4 D16B 2998 93C7
> Zope3-users mailing list
Zope3-users mailing list