[Zope3-checkins]
SVN: Zope3/branches/jim-adapter/src/zope/app/component/
Fixed a conversion bug.
Jim Fulton
jim at zope.com
Tue Apr 25 10:28:01 EDT 2006
Log message for revision 67596:
Fixed a conversion bug.
Changed:
U Zope3/branches/jim-adapter/src/zope/app/component/back35.py
U Zope3/branches/jim-adapter/src/zope/app/component/tests/test_registration.py
-=-
Modified: Zope3/branches/jim-adapter/src/zope/app/component/back35.py
===================================================================
--- Zope3/branches/jim-adapter/src/zope/app/component/back35.py 2006-04-25 13:22:36 UTC (rev 67595)
+++ Zope3/branches/jim-adapter/src/zope/app/component/back35.py 2006-04-25 14:28:00 UTC (rev 67596)
@@ -846,8 +846,8 @@
setattr(self.site, self.__name__, newregistrations)
- def __setitem__(self, *args):
- self.update(args)
+ def __setitem__(self, k, v):
+ self.update([(k, v)])
class _OldAdapterRegistrations(_OldUtilityRegistrations):
Modified: Zope3/branches/jim-adapter/src/zope/app/component/tests/test_registration.py
===================================================================
--- Zope3/branches/jim-adapter/src/zope/app/component/tests/test_registration.py 2006-04-25 13:22:36 UTC (rev 67595)
+++ Zope3/branches/jim-adapter/src/zope/app/component/tests/test_registration.py 2006-04-25 14:28:00 UTC (rev 67596)
@@ -219,6 +219,10 @@
>>> sm3.getUtility(IFoo, '5') is sm3['default']['5']
True
+ >>> sorted([r.name for r in sm2.registeredUtilities()])
+ [u'2', u'3', u'4']
+
+
Because we registered utilities, the corresponding data structures
have been updated:
More information about the Zope3-Checkins
mailing list