[Checkins]
SVN: five.localsitemanager/trunk/src/five/localsitemanager/registry.py
We don't return utilities with an Acquisition context anymore,
if they are defined in the global registry.
Hanno Schlichting
plone at hannosch.info
Wed Jun 6 10:03:06 EDT 2007
Log message for revision 76420:
We don't return utilities with an Acquisition context anymore, if they are defined in the global registry.
Changed:
U five.localsitemanager/trunk/src/five/localsitemanager/registry.py
-=-
Modified: five.localsitemanager/trunk/src/five/localsitemanager/registry.py
===================================================================
--- five.localsitemanager/trunk/src/five/localsitemanager/registry.py 2007-06-06 13:48:48 UTC (rev 76419)
+++ five.localsitemanager/trunk/src/five/localsitemanager/registry.py 2007-06-06 14:03:05 UTC (rev 76420)
@@ -101,7 +101,7 @@
# but instead looking up required functionality via other (possibly
# local) components.
- if Acquisition.interfaces.IAcquirer.providedBy(comp):
+ if registry.__bases__ and Acquisition.interfaces.IAcquirer.providedBy(comp):
parent = getSite()
if parent is None:
raise ValueError('Not enough context to acquire parent')
More information about the Checkins
mailing list