[Zope3-checkins]
SVN: Zope3/trunk/src/zope/app/registration/registration.py Sigh,
this was a tuff one. When the ZODB restores a NULL_COMPONENT, it
Stephan Richter
srichter at cosmos.phy.tufts.edu
Thu Dec 9 14:20:04 EST 2004
Log message for revision 28601:
Sigh, this was a tuff one. When the ZODB restores a NULL_COMPONENT, it
will simply generate an instance of object. Fixed now.
Changed:
U Zope3/trunk/src/zope/app/registration/registration.py
-=-
Modified: Zope3/trunk/src/zope/app/registration/registration.py
===================================================================
--- Zope3/trunk/src/zope/app/registration/registration.py 2004-12-09 18:44:33 UTC (rev 28600)
+++ Zope3/trunk/src/zope/app/registration/registration.py 2004-12-09 19:20:03 UTC (rev 28601)
@@ -735,6 +735,9 @@
if 'componentPath' in dict:
self._component = NULL_COMPONENT
self._BBB_componentPath = dict['componentPath']
+
+ if isinstance(self._BBB_componentPath, (str, unicode)):
+ self._component = NULL_COMPONENT
###########################################################################
More information about the Zope3-Checkins
mailing list