[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/apidoc/utilitymodule/__init__.py All utilities showed up twice, due to an API change in registrations()

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Jul 16 07:50:57 EDT 2004


Log message for revision 26577:
  All utilities showed up twice, due to an API change in registrations() 
  since I implemented it.
  


Changed:
  U   Zope3/trunk/src/zope/app/apidoc/utilitymodule/__init__.py


-=-
Modified: Zope3/trunk/src/zope/app/apidoc/utilitymodule/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/utilitymodule/__init__.py	2004-07-16 11:50:16 UTC (rev 26576)
+++ Zope3/trunk/src/zope/app/apidoc/utilitymodule/__init__.py	2004-07-16 11:50:57 UTC (rev 26577)
@@ -95,14 +95,9 @@
     def items(self):
         """See zope.app.container.interfaces.IReadContainer"""
         service = zapi.getService(Utilities)
-        items = []
-
-        while service is not None:
-            items += [(reg.name or NONAME, Utility(self, reg))
-                      for reg in service.registrations()
-                      if self.interface == reg.provided]
-            service = queryNextService(service, Utilities)
-
+        items = [(reg.name or NONAME, Utility(self, reg))
+                 for reg in service.registrations()
+                 if self.interface == reg.provided]
         items.sort()
         return items
 



More information about the Zope3-Checkins mailing list