[Checkins] SVN: z3c.jbot/trunk/ Change directive name to 'jbot'.

Malthe Borch mborch at gmail.com
Sat Oct 31 05:16:50 EDT 2009


Log message for revision 105399:
  Change directive name to 'jbot'.

Changed:
  U   z3c.jbot/trunk/CHANGES.txt
  U   z3c.jbot/trunk/README.txt
  U   z3c.jbot/trunk/z3c/jbot/README.txt
  U   z3c.jbot/trunk/z3c/jbot/meta.zcml
  U   z3c.jbot/trunk/z3c/jbot/metaconfigure.py

-=-
Modified: z3c.jbot/trunk/CHANGES.txt
===================================================================
--- z3c.jbot/trunk/CHANGES.txt	2009-10-30 22:53:51 UTC (rev 105398)
+++ z3c.jbot/trunk/CHANGES.txt	2009-10-31 09:16:50 UTC (rev 105399)
@@ -1,6 +1,10 @@
 Changes
 =======
 
+In next release...
+
+- ZCML-directive is now called ``jbot``. [malthe]
+
 0.5.2 (2009-10-23)
 ------------------
 

Modified: z3c.jbot/trunk/README.txt
===================================================================
--- z3c.jbot/trunk/README.txt	2009-10-30 22:53:51 UTC (rev 105398)
+++ z3c.jbot/trunk/README.txt	2009-10-31 09:16:50 UTC (rev 105399)
@@ -31,7 +31,7 @@
 
   <include package="z3c.jbot" file="meta.zcml" />
 
-  <browser:templateOverrides
+  <browser:jbot
       directory="<path>"
       layer="<layer>" />
 

Modified: z3c.jbot/trunk/z3c/jbot/README.txt
===================================================================
--- z3c.jbot/trunk/z3c/jbot/README.txt	2009-10-30 22:53:51 UTC (rev 105398)
+++ z3c.jbot/trunk/z3c/jbot/README.txt	2009-10-31 09:16:50 UTC (rev 105399)
@@ -176,7 +176,7 @@
 
   >>> xmlconfig.xmlconfig(StringIO("""
   ... <configure xmlns="http://namespaces.zope.org/browser">
-  ... <templateOverrides directory="%s/overrides/interface" />
+  ... <jbot directory="%s/overrides/interface" />
   ... </configure>
   ... """ % directory))
 
@@ -204,7 +204,7 @@
 
   >>> xmlconfig.xmlconfig(StringIO("""
   ... <configure xmlns="http://namespaces.zope.org/browser">
-  ... <templateOverrides
+  ... <jbot
   ...      directory="%s/overrides/http"
   ...      layer="zope.publisher.interfaces.browser.IHTTPRequest" />
   ... </configure>

Modified: z3c.jbot/trunk/z3c/jbot/meta.zcml
===================================================================
--- z3c.jbot/trunk/z3c/jbot/meta.zcml	2009-10-30 22:53:51 UTC (rev 105398)
+++ z3c.jbot/trunk/z3c/jbot/meta.zcml	2009-10-31 09:16:50 UTC (rev 105399)
@@ -3,13 +3,19 @@
     xmlns:meta="http://namespaces.zope.org/meta">
 
     <meta:directives namespace="http://namespaces.zope.org/browser">
-        
+
       <meta:directive
          name="templateOverrides"
          schema=".metadirectives.ITemplateOverridesDirective"
          handler=".metaconfigure.templateOverridesDirective"
          />
-                   
+
+      <meta:directive
+         name="jbot"
+         schema=".metadirectives.ITemplateOverridesDirective"
+         handler=".metaconfigure.templateOverridesDirective"
+         />
+
     </meta:directives>
-           
+
 </configure>

Modified: z3c.jbot/trunk/z3c/jbot/metaconfigure.py
===================================================================
--- z3c.jbot/trunk/z3c/jbot/metaconfigure.py	2009-10-30 22:53:51 UTC (rev 105398)
+++ z3c.jbot/trunk/z3c/jbot/metaconfigure.py	2009-10-31 09:16:50 UTC (rev 105399)
@@ -35,7 +35,7 @@
 
 def templateOverridesDirective(_context, directory, layer=interface.Interface):
     _context.action(
-        discriminator = ('override', directory, layer),
+        discriminator = ('jbot', directory, layer),
         callable = handler,
         args = (directory, layer),
         )



More information about the checkins mailing list