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):
self._product=product
self._d=dest
if REQUEST is not None:
v=REQUEST['URL']
v=v[:rfind(v,'/')]
self._u=v[:rfind(v,'/')]
try:
v=REQUEST['URL']
except KeyError: pass
else:
v=v[:rfind(v,'/')]
self._u=v[:rfind(v,'/')]
def Destination(self):
"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