[Zope3-checkins] SVN: Zope3/trunk/src/zope/component/__init__.py
convert a magic spelling of iteration to an actual loop; added a
Philipp von Weitershausen
philikon at philikon.de
Sat Jun 25 12:57:28 EDT 2005
Log message for revision 30925:
convert a magic spelling of iteration to an actual loop; added a
comment why a sole iteration is sufficient
Changed:
U Zope3/trunk/src/zope/component/__init__.py
-=-
Modified: Zope3/trunk/src/zope/component/__init__.py
===================================================================
--- Zope3/trunk/src/zope/component/__init__.py 2005-06-25 16:41:33 UTC (rev 30924)
+++ Zope3/trunk/src/zope/component/__init__.py 2005-06-25 16:57:27 UTC (rev 30925)
@@ -182,7 +182,9 @@
def handle(*objects):
sitemanager = getSiteManager(None)
- tuple(sitemanager.subscribers(objects, None))
+ # iterating over subscribers assures they get executed
+ for ignored in sitemanager.subscribers(objects, None):
+ pass
class _adapts_descr(object):
def __init__(self, interfaces):
More information about the Zope3-Checkins
mailing list