[Zope3-checkins] CVS: Zope3/src/zope/app/services -
registration.py:1.26
Jim Fulton
jim at zope.com
Sat Mar 6 15:07:05 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv12885/src/zope/app/services
Modified Files:
registration.py
Log Message:
Got rid of NamedRegistrations.
=== Zope3/src/zope/app/services/registration.py 1.25 => 1.26 ===
--- Zope3/src/zope/app/services/registration.py:1.25 Sat Mar 6 12:48:53 2004
+++ Zope3/src/zope/app/services/registration.py Sat Mar 6 15:06:35 2004
@@ -350,19 +350,6 @@
self.status = interfaces.UnregisteredStatus
-class NamedRegistration(SimpleRegistration):
- """Named registration
- """
-
- implements(interfaces.INamedRegistration)
-
- def __init__(self, name):
- self.name = name
-
- def usageSummary(self):
- return "%s %s" % (self.name, self.__class__.__name__)
-
-
class ComponentRegistration(SimpleRegistration):
"""Component registration.
@@ -450,7 +437,7 @@
if adapter is not None:
adapter.removeUsage(zapi.getPath(self))
-class NamedComponentRegistration(NamedRegistration, ComponentRegistration):
+class NamedComponentRegistration(ComponentRegistration):
"""Registrations for named components.
This configures components that live in folders, by name.
@@ -458,8 +445,12 @@
implements(interfaces.INamedComponentRegistration)
def __init__(self, name, component_path, permission=None):
- NamedRegistration.__init__(self, name)
+ self.name = name
ComponentRegistration.__init__(self, component_path, permission)
+
+ def usageSummary(self):
+ return "%s %s" % (self.name, self.__class__.__name__)
+
class NameRegistry:
More information about the Zope3-Checkins
mailing list