[Zope3-checkins] CVS: Zope3/src/zope/app/contentdirective - contentdirective.py:1.6

R. Sean Bowman sean.bowman@acm.org
Thu, 6 Feb 2003 01:50:35 -0500


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

Modified Files:
	contentdirective.py 
Log Message:
finished changing service names to use strings defined in
zope/component/servicenames.py, changed the name of
ErrorReportingService to ErrorReports and Resources to ResourceService


=== Zope3/src/zope/app/contentdirective/contentdirective.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/contentdirective/contentdirective.py:1.5	Tue Jan 21 16:35:22 2003
+++ Zope3/src/zope/app/contentdirective/contentdirective.py	Thu Feb  6 01:49:31 2003
@@ -20,6 +20,7 @@
 from zope.configuration.interfaces import INonEmptyDirective
 from zope.configuration.interfaces import ISubdirectiveHandler
 from zope.component import getService
+from zope.component.servicenames import Interfaces, Factories
 from zope.configuration.exceptions import ConfigurationError
 from zope.configuration.action import Action
 from zope.app.component.classfactory import ClassFactory
@@ -73,7 +74,7 @@
             Action(
                discriminator = None,
                callable = handler,
-               args = ('Interfaces', 'provideInterface',
+               args = (Interfaces, 'provideInterface',
                        resolved_interface.__module__+
                        '.'+
                        resolved_interface.__name__,
@@ -207,4 +208,4 @@
                                NamesChecker(('getInterfaces',),
                                             __call__=permission))
 
-    getService(None, 'Factories').provideFactory(id, factory)
+    getService(None, Factories).provideFactory(id, factory)