[Zope3-checkins] CVS: Zope3/src/zope/app/presentation - presentation.py:1.16

Stephan Richter srichter at cosmos.phy.tufts.edu
Sat Apr 17 10:33:44 EDT 2004


Update of /cvs-repository/Zope3/src/zope/app/presentation
In directory cvs.zope.org:/tmp/cvs-serv16544/src/zope/app/presentation

Modified Files:
	presentation.py 
Log Message:


Expanded local registry registrations() to
registrations(localOnly=False). When localOnly is set to True, show only
registrations made in this service.



Renamed zope.component.interfaces.IComponentRegistry to IRegistry and
zope.app.registration.interfaces.IRegistry extends now the
zope.component.interfaces.IRegistry.




=== Zope3/src/zope/app/presentation/presentation.py 1.15 => 1.16 ===
--- Zope3/src/zope/app/presentation/presentation.py:1.15	Thu Apr 15 09:25:33 2004
+++ Zope3/src/zope/app/presentation/presentation.py	Sat Apr 17 10:33:09 2004
@@ -51,7 +51,6 @@
 
     zope.interface.implements(
         zope.component.interfaces.IPresentationService,
-        zope.component.interfaces.IComponentRegistry,
         zope.app.site.interfaces.ISimpleService,
         zope.app.registration.interfaces.IRegistry,
         zope.app.interface.interfaces.IInterfaceBasedRegistry,
@@ -213,10 +212,13 @@
             
         return layer.createRegistrationsFor(registration)
 
-    def registrations(self):
+    def registrations(self, localOnly=False):
         for layer in self.layers.itervalues():
             for registration in layer.registrations():
                 yield registration
+
+        if localOnly is True:
+            return
 
         next = self.next
         if next is None:




More information about the Zope3-Checkins mailing list