[Zope3-checkins] CVS: Zope3/src/zope/publisher - browser.py:1.28

Stephan Richter srichter at cosmos.phy.tufts.edu
Sat Mar 20 11:27:17 EST 2004


Update of /cvs-repository/Zope3/src/zope/publisher
In directory cvs.zope.org:/tmp/cvs-serv11286/src/zope/publisher

Modified Files:
	browser.py 
Log Message:


Set default response code to None and return output of response.redirect




=== Zope3/src/zope/publisher/browser.py 1.27 => 1.28 ===
--- Zope3/src/zope/publisher/browser.py:1.27	Fri Mar 19 15:26:43 2004
+++ Zope3/src/zope/publisher/browser.py	Sat Mar 20 11:27:17 2004
@@ -813,7 +813,7 @@
     def setBase(self, base):
         self._base = base
 
-    def redirect(self, location, status=302):
+    def redirect(self, location, status=None):
         base = getattr(self, '_base', '')
         if base and isRelative(str(location)):
             l = base.rfind('/')
@@ -831,7 +831,7 @@
         # if isRelative(str(location)):
         #     raise AssertionError('Cannot determine absolute location')
 
-        super(BrowserResponse, self).redirect(location, status)
+        return super(BrowserResponse, self).redirect(location, status)
 
     def reset(self):
         super(BrowserResponse, self).reset()




More information about the Zope3-Checkins mailing list