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

Jim Fulton jim@zope.com
Tue, 18 Mar 2003 11:56:16 -0500


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

Modified Files:
      Tag: local-utility-branch
	contentdirective.py 
Log Message:
checkpoint into branch

=== Zope3/src/zope/app/contentdirective/contentdirective.py 1.8 => 1.8.6.1 ===
--- Zope3/src/zope/app/contentdirective/contentdirective.py:1.8	Tue Feb 11 21:17:18 2003
+++ Zope3/src/zope/app/contentdirective/contentdirective.py	Tue Mar 18 11:55:45 2003
@@ -134,6 +134,15 @@
         interface = self.__context.resolve(interface)
         for n, d in interface.namesAndDescriptions(1):
             self.__protectName(n, permission_id, r)
+        r.append(
+            Action(
+               discriminator = None,
+               callable = handler,
+               args = (Interfaces, 'provideInterface',
+                       interface.__module__+ '.'+ interface.__name__,
+                       interface)
+               )
+            )
 
     def __protectName(self, name, permission_id, r):
         "Set a permission on a particular name."
@@ -162,6 +171,16 @@
                 r.append((
                     ('protectSetAttribute', self.__class, name),
                     protectSetAttribute, (self.__class, name, permission_id)))
+
+        r.append(
+            Action(
+               discriminator = None,
+               callable = handler,
+               args = (Interfaces, 'provideInterface',
+                       schema.__module__+ '.'+ schema.__name__,
+                       schema)
+               )
+            )
 
 
     def __call__(self):