[Checkins] SVN: GenericSetup/trunk/components.py Make sure the
portal root has a correct path. This fixes
http://www.zope.org/Collectors/CMF/473
Wichert Akkerman
wichert at wiggy.net
Fri Jul 6 10:30:18 EDT 2007
Log message for revision 77513:
Make sure the portal root has a correct path. This fixes http://www.zope.org/Collectors/CMF/473
Changed:
U GenericSetup/trunk/components.py
-=-
Modified: GenericSetup/trunk/components.py
===================================================================
--- GenericSetup/trunk/components.py 2007-07-06 14:26:09 UTC (rev 77512)
+++ GenericSetup/trunk/components.py 2007-07-06 14:30:18 UTC (rev 77513)
@@ -210,6 +210,8 @@
if hasattr(site, 'aq_base'):
site_path = '/'.join(site.getPhysicalPath())
rel_path = path[len(site_path):]
+ if not rel_path:
+ rel_path = '/'
child.setAttribute('object', rel_path)
else:
factory = _getDottedName(type(comp))
More information about the Checkins
mailing list