[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/intid/__init__.py
Remove unneccsary and error-causing second argument to
Benji York
benji at zope.com
Tue May 31 10:30:17 EDT 2005
Log message for revision 30569:
Remove unneccsary and error-causing second argument to
getAllUtilitiesRegisteredFor and fix long line.
Changed:
U Zope3/trunk/src/zope/app/intid/__init__.py
-=-
Modified: Zope3/trunk/src/zope/app/intid/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/intid/__init__.py 2005-05-31 14:29:13 UTC (rev 30568)
+++ Zope3/trunk/src/zope/app/intid/__init__.py 2005-05-31 14:30:17 UTC (rev 30569)
@@ -151,8 +151,9 @@
Registers the object added in all unique id utilities and fires
an event for the catalogs.
"""
- if not ITransientLocation.providedBy(ob): # do not register transient locations
- for utility in zapi.getAllUtilitiesRegisteredFor(IIntIds, ob):
+ # do not register transient locations
+ if not ITransientLocation.providedBy(ob):
+ for utility in zapi.getAllUtilitiesRegisteredFor(IIntIds):
utility.register(ob)
# Notify the catalogs that this object was added.
More information about the Zope3-Checkins
mailing list