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

Jim Fulton jim at zope.com
Sat Mar 6 17:21:17 EST 2004


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

Modified Files:
	registration.py 
Log Message:
Got rid of NameRegistry.


=== Zope3/src/zope/app/interfaces/services/registration.py 1.19 => 1.20 ===
--- Zope3/src/zope/app/interfaces/services/registration.py:1.19	Sat Mar  6 17:07:25 2004
+++ Zope3/src/zope/app/interfaces/services/registration.py	Sat Mar  6 17:20:47 2004
@@ -275,14 +275,16 @@
         """
 
 
-class INameRegistry(IRegistry):
-    """An IRegistry, where a name is used to decide which registry to
-    return for methods in IRegistry.
+
+class INameComponentRegistry(IRegistry):
+    """A name where the registrations refer to components.
 
     All registrations that pass through queryRegistrationsFor and
-    createRegistrationsFor are expected to implement INamedRegistration.
+    createRegistrationsFor are expected to implement
+    INamedComponentRegistration.
     """
 
+
     def queryRegistrations(name, default=None):
         """Return an IRegistrationRegistry for the registration name.
 
@@ -302,18 +304,13 @@
         """Return a list of all registered registration names.
         """
 
-class INameComponentRegistry(INameRegistry):
-    """An INameRegistry where the registrations refer to components.
 
-    All registrations that pass through queryRegistrationsFor and
-    createRegistrationsFor are expected to implement
-    INamedComponentRegistration.
-    """
     def queryActiveComponent(name, default=None):
         """Finds the registration registry for a given name, checks if it has
         an active registration, and if so, returns its component.  Otherwise
         returns default.
         """
+
 class IOrderedContainer(Interface):
     """Containers whose items can be reorderd.
 




More information about the Zope3-Checkins mailing list