[Zope3-checkins] CVS: Zope3/src/zope/configuration - config.py:1.7 interfaces.py:1.3

Jim Fulton jim@zope.com
Thu, 31 Jul 2003 10:56:46 -0400


Update of /cvs-repository/Zope3/src/zope/configuration
In directory cvs.zope.org:/tmp/cvs-serv10977/src/zope/configuration

Modified Files:
	config.py interfaces.py 
Log Message:
Added IGroupingContext, which documents the hooks that grouping
directive handlers should provide.


=== Zope3/src/zope/configuration/config.py 1.6 => 1.7 ===
--- Zope3/src/zope/configuration/config.py:1.6	Wed Jul 30 11:06:47 2003
+++ Zope3/src/zope/configuration/config.py	Thu Jul 31 10:56:40 2003
@@ -21,6 +21,7 @@
 from keyword import iskeyword
 from zope.configuration.exceptions import ConfigurationError
 from zope.configuration.interfaces import IConfigurationContext
+from zope.configuration.interfaces import IGroupingContext
 from zope.interface.adapter import AdapterRegistry
 from zope.interface import Interface, implements, directlyProvides
 from zope.interface.interfaces import IInterface
@@ -805,7 +806,7 @@
     See the discussion (and test) id GroupingStackItem.
     """
 
-    implements(IConfigurationContext)
+    implements(IConfigurationContext, IGroupingContext)
 
     def __init__(self, context, **kw):
         self.context = context


=== Zope3/src/zope/configuration/interfaces.py 1.2 => 1.3 ===
--- Zope3/src/zope/configuration/interfaces.py:1.2	Mon Jul 28 18:22:39 2003
+++ Zope3/src/zope/configuration/interfaces.py	Thu Jul 31 10:56:40 2003
@@ -71,3 +71,13 @@
         actions with a discriminator of None never conflicts with
         other actions.
         """
+
+class IGroupingContext(Interface):
+
+    def before():
+        """Do something before processing nested directives
+        """
+
+    def after():
+        """Do something after processing nested directives
+        """