[Grok-dev] grokcore.view 2.1 and Zope 2.
sebastian at urbantalk.se
Fri Dec 3 07:18:32 EST 2010
2 dec 2010 kl. 17.26 skrev Sylvain Viollon:
> There is a new option to redirect in Zope 3 it seems. trusted:
> File '/usr/home/sylvain/buildout/eggs/grokcore.view-2.1-py2.7.egg/grokcore/view/components.py', line 51 in redirect
> url, status=status, trusted=trusted)
> TypeError: redirect() got an unexpected keyword argument 'trusted'
> It annoy me a lot as it doesn't exist in Zope 2, and so my application
> just fails.
> Does anyone use this feature ?
I use it.
> If you set true, it ValueError if the redirect is not in the same
> domain than the site. It is not really documented (like everything),
> and well, not correctly named probably. Probably it should even not be
> checked there.
But I seem to remember that if you set it to True it ALLOWS you to redirect to another domain than the site.
More information about the Grok-dev