[Zope3-checkins] CVS: Zope3/lib/python/Zope/Configuration/tests - Directives.py:1.4.4.1

R. David Murray bitz@bitdance.com
Mon, 21 Oct 2002 19:15:52 -0400


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

Modified Files:
      Tag: rdmurray-metameta-branch
	Directives.py 
Log Message:
Fix the declarations of the INonEmptyDirectives.  protextClass had an
incorrect declaration, and my subsub needed one.


=== Zope3/lib/python/Zope/Configuration/tests/Directives.py 1.4 => 1.4.4.1 ===
--- Zope3/lib/python/Zope/Configuration/tests/Directives.py:1.4	Sun Sep 22 12:05:18 2002
+++ Zope3/lib/python/Zope/Configuration/tests/Directives.py	Mon Oct 21 19:15:52 2002
@@ -23,7 +23,7 @@
 
 class protectClass:
 
-    __implements__ = INonEmptyDirective
+    __class_implements__ = INonEmptyDirective
 
     def __init__(self, _context, name, permission=None, names=None):
         self._name=name
@@ -55,6 +55,7 @@
         #If you put a protect inside a subsub, that'll set children,
         #so when the parser calls us, __call__ will return ().
         return self
+    subsub.__implements__ = INonEmptyDirective
 
 done = []