[Checkins]
SVN: five.customerize/branches/plone-3.0-branch/src/five/customerize/browser.py
`zope.dottedname.resolve.resolve` doesn't handle path
components with a leading dot properly. however,
the way it is used here might not be the intended use case so the
raised `ValueError` is just caught for the time being (see
http://dev.plone.org/plone/ticket/6692 for background information)
Andreas Zeidler
az at zitc.de
Thu Aug 9 09:20:37 EDT 2007
Log message for revision 78724:
`zope.dottedname.resolve.resolve` doesn't handle path components with a leading dot properly. however, the way it is used here might not be the intended use case so the raised `ValueError` is just caught for the time being (see http://dev.plone.org/plone/ticket/6692 for background information)
Changed:
U five.customerize/branches/plone-3.0-branch/src/five/customerize/browser.py
-=-
Modified: five.customerize/branches/plone-3.0-branch/src/five/customerize/browser.py
===================================================================
--- five.customerize/branches/plone-3.0-branch/src/five/customerize/browser.py 2007-08-09 09:47:05 UTC (rev 78723)
+++ five.customerize/branches/plone-3.0-branch/src/five/customerize/browser.py 2007-08-09 13:20:37 UTC (rev 78724)
@@ -54,7 +54,7 @@
try:
zope.dottedname.resolve.resolve('.'.join(pieces))
break
- except ImportError:
+ except (ImportError, ValueError):
pieces = pieces[1:]
if not pieces:
return filename
More information about the Checkins
mailing list