[Zope3-checkins] CVS: Zope3/src/zope/app/site/browser - meta.zcml:1.2 metadirectives.py:1.2

Stephan Richter srichter at cosmos.phy.tufts.edu
Sun Mar 21 19:52:24 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/site/browser
In directory cvs.zope.org:/tmp/cvs-serv1355/src/zope/app/site/browser

Modified Files:
	meta.zcml metadirectives.py 
Log Message:


Added servicetool directive.




=== Zope3/src/zope/app/site/browser/meta.zcml 1.1 => 1.2 ===
--- Zope3/src/zope/app/site/browser/meta.zcml:1.1	Sun Mar 21 11:02:18 2004
+++ Zope3/src/zope/app/site/browser/meta.zcml	Sun Mar 21 19:52:23 2004
@@ -8,4 +8,10 @@
       schema=".metadirectives.IUtilityToolDirective"
       handler=".metaconfigure.tool"/>
 
+  <meta:directive
+      namespace="http://namespaces.zope.org/browser"
+      name="servicetool"
+      schema=".metadirectives.IServiceToolDirective"
+      handler=".metaconfigure.servicetool"/>
+
 </configure>


=== Zope3/src/zope/app/site/browser/metadirectives.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/site/browser/metadirectives.py:1.1	Sun Mar 21 11:02:18 2004
+++ Zope3/src/zope/app/site/browser/metadirectives.py	Sun Mar 21 19:52:23 2004
@@ -18,15 +18,8 @@
 from zope.configuration.fields import GlobalObject, PythonIdentifier, MessageID
 from zope.interface import Interface
 
-class IUtilityToolDirective(Interface):
-    """Directive for creating new utility-based tools."""
-
-    interface = GlobalObject(
-        title=u"Interface",
-        description=u"Interface used to filter out the available entries in a \
-                      tool",
-        required=True)
-    
+class IToolDirective(Interface):
+    """Directive implementing basic tool support."""
     folder = PythonIdentifier(
         title=u"Destination Folder",
         description=u"""Destination Folder in which the tool instances are
@@ -45,3 +38,15 @@
         description=u"Narrative description of what the tool represents.",
         required=False
         )
+    
+class IUtilityToolDirective(IToolDirective):
+    """Directive for creating new utility-based tools."""
+
+    interface = GlobalObject(
+        title=u"Interface",
+        description=u"Interface used to filter out the available entries in a \
+                      tool",
+        required=True)
+    
+class IServiceToolDirective(IToolDirective):
+    """Directive for specifying service-based tools."""




More information about the Zope3-Checkins mailing list