[Zope-Checkins] CVS: Packages/ZPublisher - HTTPRequest.py:1.89

Evan Simpson evan@zope.com
Fri, 14 Feb 2003 18:24:57 -0500


Update of /cvs-repository/Packages/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv3202

Modified Files:
	HTTPRequest.py 
Log Message:
Fix my fix :-(


=== Packages/ZPublisher/HTTPRequest.py 1.88 => 1.89 ===
--- Packages/ZPublisher/HTTPRequest.py:1.88	Fri Feb 14 17:52:36 2003
+++ Packages/ZPublisher/HTTPRequest.py	Fri Feb 14 18:24:56 2003
@@ -1107,9 +1107,10 @@
                     path = [''] + path[:n]
                 else:
                     path = [other['SERVER_URL']] + path[:n]
+                URL = '/'.join(path)
                 if other.has_key('PUBLISHED'):
                     # Don't cache URLs until publishing traversal is done.
-                    other[key] = URL = '/'.join(path)
+                    other[key] = URL
                     self._urls = self._urls + (key,)
                 return URL
 
@@ -1139,9 +1140,10 @@
                     v.insert(0, '')
                 else:
                     v.insert(0, other['SERVER_URL'])
+                URL = '/'.join(v)
                 if other.has_key('PUBLISHED'):
                     # Don't cache URLs until publishing traversal is done.
-                    other[key] = URL = '/'.join(v)
+                    other[key] = URL
                     self._urls = self._urls + (key,)
                 return URL