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

Suresh Babu Eddala sbabu at zeomega.com
Fri Mar 5 10:51:45 EST 2004


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

Modified Files:
	contentdirective.py 
Log Message:


removed local interface service stuff, it uses global utility service.




=== Zope3/src/zope/app/component/contentdirective.py 1.13 => 1.14 ===
--- Zope3/src/zope/app/component/contentdirective.py:1.13	Wed Feb 25 18:02:22 2004
+++ Zope3/src/zope/app/component/contentdirective.py	Fri Mar  5 10:51:44 2004
@@ -19,13 +19,15 @@
 from zope.interface import classImplements
 from zope.component import getService
 from zope.component.factory import FactoryInfo
-from zope.app.services.servicenames import Interfaces, Factories
+from zope.app.services.servicenames import Factories
 from zope.configuration.exceptions import ConfigurationError
 from zope.app.component.classfactory import ClassFactory
 from zope.app.security.protectclass \
     import protectLikeUnto, protectName, protectSetAttribute
 from zope.app.security.registries.permissionregistry import permissionRegistry
+from zope.app.component.interface import provideInterface
 from zope.security.checker import CheckerPublic
+
 from zope.schema.interfaces import IField
 
 PublicPermission = 'zope.Public'
@@ -70,11 +72,8 @@
                 )
             _context.action(
                 discriminator = None,
-                callable = handler,
-                args = (Interfaces, 'provideInterface',
-                        interface.__module__+
-                        '.'+
-                        interface.getName(),
+                callable = provideInterface,
+                args = (interface.__module__ + '.' + interface.getName(),
                         interface)
                 )
 
@@ -123,9 +122,8 @@
             self.__protectName(n, permission_id)
         self.__context.action(
             discriminator = None,
-            callable = handler,
-            args = (Interfaces, 'provideInterface',
-                    interface.__module__+ '.'+ interface.getName(),
+            callable = provideInterface,
+            args = (interface.__module__ + '.' + interface.getName(),
                     interface)
             )
 
@@ -164,9 +162,8 @@
                     )
         _context.action(
             discriminator = None,
-            callable = handler,
-            args = (Interfaces, 'provideInterface',
-                    schema.__module__+ '.'+ schema.getName(),
+            callable = provideInterface,
+            args = (schema.__module__ + '.' + schema.getName(),
                     schema)
             )
 




More information about the Zope3-Checkins mailing list