Commit 6fb38bcf authored by Shane Hathaway's avatar Shane Hathaway

Corrects a problem with unrestrictedTraverse. After conferring with Jim, the...

Corrects a problem with unrestrictedTraverse.  After conferring with Jim, the URL apparently isn't always needed.
parent 7e7d8d88
...@@ -110,7 +110,10 @@ class FactoryDispatcher(Acquisition.Implicit): ...@@ -110,7 +110,10 @@ class FactoryDispatcher(Acquisition.Implicit):
self._product=product self._product=product
self._d=dest self._d=dest
if REQUEST is not None: if REQUEST is not None:
try:
v=REQUEST['URL'] v=REQUEST['URL']
except KeyError: pass
else:
v=v[:rfind(v,'/')] v=v[:rfind(v,'/')]
self._u=v[:rfind(v,'/')] self._u=v[:rfind(v,'/')]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment