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

Fred L. Drake, Jr. fred at zope.com
Wed Sep 24 16:43:44 EDT 2003


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

Modified Files:
	registration.py 
Log Message:
Registered: Implement (and test!) the new registrations() method of
 the IRegistered interface.


=== Zope3/src/zope/app/services/registration.py 1.15 => 1.16 ===
--- Zope3/src/zope/app/services/registration.py:1.15	Sun Sep 21 13:32:58 2003
+++ Zope3/src/zope/app/services/registration.py	Wed Sep 24 16:43:13 2003
@@ -520,6 +520,10 @@
     removeUsage = PathSetAnnotation.removePath
     usages = PathSetAnnotation.getPaths
 
+    def registrations(self):
+        return [zapi.traverse(self.context, path)
+                for path in self.getPaths()]
+
 
 class RegistrationManager(Persistent, Contained):
     """Registration manager




More information about the Zope3-Checkins mailing list