[Checkins] SVN: GenericSetup/trunk/components.py Fixed condition for registering the site itself

Hanno Schlichting plone at hannosch.info
Sat Jul 21 17:32:08 EDT 2007


Log message for revision 78277:
  Fixed condition for registering the site itself
  

Changed:
  U   GenericSetup/trunk/components.py

-=-
Modified: GenericSetup/trunk/components.py
===================================================================
--- GenericSetup/trunk/components.py	2007-07-21 21:04:52 UTC (rev 78276)
+++ GenericSetup/trunk/components.py	2007-07-21 21:32:08 UTC (rev 78277)
@@ -129,7 +129,7 @@
             factory = factory and _resolveDottedName(factory) or None
 
             obj_path = child.getAttribute('object')
-            if obj_path:
+            if not component and not factory and obj_path is not None:
                 # Get the site by either __parent__ or Acquisition
                 site = getattr(self.context, '__parent__', None)
                 if site is None:



More information about the Checkins mailing list