[Checkins] SVN: five.grok/branches/view-of-view/src/five/grok/components.py makes redirect work - default status is 302 - Zope2 ZPublisher.Response doesn't know about the 'trusted' parameter
Jean-Francois Roche
jfroche at jfroche.be
Mon Jul 25 12:22:55 EDT 2011
Log message for revision 122347:
makes redirect work - default status is 302 - Zope2 ZPublisher.Response doesn't know about the 'trusted' parameter
Changed:
U five.grok/branches/view-of-view/src/five/grok/components.py
-=-
Modified: five.grok/branches/view-of-view/src/five/grok/components.py
===================================================================
--- five.grok/branches/view-of-view/src/five/grok/components.py 2011-07-25 15:45:25 UTC (rev 122346)
+++ five.grok/branches/view-of-view/src/five/grok/components.py 2011-07-25 16:22:55 UTC (rev 122347)
@@ -94,7 +94,11 @@
def HEAD(self, request, response):
pass
+ def redirect(self, url, status=302, trusted=False):
+ return self.request.response.redirect(
+ url, status=status)
+
class ViewAwareZopePageTemplate(ZopePageTemplate):
def pt_getEngine(self):
More information about the checkins
mailing list