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,9 +110,12 @@ class FactoryDispatcher(Acquisition.Implicit): ...@@ -110,9 +110,12 @@ 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:
v=REQUEST['URL'] try:
v=v[:rfind(v,'/')] v=REQUEST['URL']
self._u=v[:rfind(v,'/')] except KeyError: pass
else:
v=v[:rfind(v,'/')]
self._u=v[:rfind(v,'/')]
def Destination(self): def Destination(self):
"Return the destination for factory output" "Return the destination for factory output"
......
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