[Zope3-checkins] CVS: Zope3/lib/python/Zope/Configuration - IEmptyDirective.py:1.2 INonEmptyDirective.py:1.4

R. David Murray bitz@bitdance.com
Wed, 18 Sep 2002 13:02:22 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/Configuration
In directory cvs.zope.org:/tmp/cvs-serv3245

Modified Files:
	IEmptyDirective.py INonEmptyDirective.py 
Log Message:
Directive handlers actually get passed a 'context' as their first
argument; update the Interface to reflect this.  Also document
what the kw arguments are.


=== Zope3/lib/python/Zope/Configuration/IEmptyDirective.py 1.1 => 1.2 ===
--- Zope3/lib/python/Zope/Configuration/IEmptyDirective.py:1.1	Sun Sep  1 14:29:58 2002
+++ Zope3/lib/python/Zope/Configuration/IEmptyDirective.py	Wed Sep 18 13:02:22 2002
@@ -19,8 +19,14 @@
 
 class IEmptyDirective(Interface):
 
-    def __call__(**kw):
+    def __call__(context,**kw):
         """Compute configuration actions
+
+        context -- an execution context that the directive may use for
+          things like resolving names
+
+        kw -- a dictionary containing the values of any attributes
+          that were specified on the directive
 
         Return a sequence of configuration actions. Each action is a
         tuple with:


=== Zope3/lib/python/Zope/Configuration/INonEmptyDirective.py 1.3 => 1.4 ===
--- Zope3/lib/python/Zope/Configuration/INonEmptyDirective.py:1.3	Tue Sep  3 12:04:06 2002
+++ Zope3/lib/python/Zope/Configuration/INonEmptyDirective.py	Wed Sep 18 13:02:22 2002
@@ -19,8 +19,14 @@
 
 class INonEmptyDirective(Interface):
 
-    def __call__(**kw):
+    def __call__(context,**kw):
         """Compute subdirective handler
+
+        context -- an execution context that the directive may use for
+          things like resolving names
+
+        kw -- a dictionary containing the values of any attributes
+          that were specified on the directive
 
         Return an ISubdirectiveHandler.
         """