[Zope-Checkins] CVS: Zope/lib/python/ComponentArchitecture - Package.py:1.1.2.1 InputToName.py:1.1.2.5 Service.py:1.1.2.3 ServiceManager.py:1.1.2.3

Shane Hathaway shane@digicool.com
Fri, 10 Aug 2001 16:13:40 -0400


Update of /cvs-repository/Zope/lib/python/ComponentArchitecture
In directory cvs.zope.org:/tmp/cvs-serv13971

Modified Files:
      Tag: NR-branch
	InputToName.py Service.py ServiceManager.py 
Added Files:
      Tag: NR-branch
	Package.py 
Log Message:
Minor enhancements needed for packages


=== Added File Zope/lib/python/ComponentArchitecture/Package.py ===


import Interface
from Service import Service

PACKAGE_SERVICE_NAME = 'packages'


class PackageService (Service):
    '''
    '''


class Package (Interface.Base):
    '''
    '''


class PackageAwareComponent (Interface.Base):
    '''
    '''




=== Zope/lib/python/ComponentArchitecture/InputToName.py 1.1.2.4 => 1.1.2.5 ===
 from InterfaceComponents import objectImplements
 from Component import Component
+from Package import PackageAwareComponent
 
 
 class InputToNameService (Service):
@@ -46,7 +47,7 @@
         '''
 
 
-class InputToNameComponent (Component):
+class InputToNameComponent (Component, PackageAwareComponent):
     '''
     A component that requires some set of interfaces and provides
     a name.


=== Zope/lib/python/ComponentArchitecture/Service.py 1.1.2.2 => 1.1.2.3 ===
     Interface for all Services.
     '''
+    def getServiceName(self):
+        '''
+        '''


=== Zope/lib/python/ComponentArchitecture/ServiceManager.py 1.1.2.2 => 1.1.2.3 ===
         '''
         '''
+
+    def listServiceNames():
+        '''
+        '''