[Zope3-checkins] CVS: Zope3/src/zope/publisher - base.py:1.15
Stephan Richter
srichter at cosmos.phy.tufts.edu
Thu Mar 18 15:03:51 EST 2004
Update of /cvs-repository/Zope3/src/zope/publisher
In directory cvs.zope.org:/tmp/cvs-serv24897/src/zope/publisher
Modified Files:
base.py
Log Message:
Removed XXX comment and added explanation.
=== Zope3/src/zope/publisher/base.py 1.14 => 1.15 ===
--- Zope3/src/zope/publisher/base.py:1.14 Mon Feb 16 16:37:19 2004
+++ Zope3/src/zope/publisher/base.py Thu Mar 18 15:03:51 2004
@@ -382,7 +382,9 @@
def _setupPath_helper(self, attr):
path = self.get(attr, "/").strip()
if path.endswith('/'):
- path = path[:-1] # XXX Why? Not sure
+ # Remove trailing backslash, so that we will not get an empty
+ # last entry when splitting the path.
+ path = path[:-1]
self._endswithslash = 1
else:
self._endswithslash = 0
More information about the Zope3-Checkins
mailing list