[Checkins] SVN: zope.contentprovider/trunk/ Ensure that our configure.zcml can be loaded without requiring further dependencies. It uses a ``tales:expressiontype`` directive defined in zope.app.pagetemplate. We keep that dependency optional, as not all consumers of this package use ZCML to configure the expression type.

Hanno Schlichting hannosch at hannosch.eu
Wed Dec 23 08:10:57 EST 2009


Log message for revision 107002:
  Ensure that our configure.zcml can be loaded without requiring further dependencies. It uses a ``tales:expressiontype`` directive defined in zope.app.pagetemplate. We keep that dependency optional, as not all consumers of this package use ZCML to configure the expression type.
  

Changed:
  U   zope.contentprovider/trunk/CHANGES.txt
  U   zope.contentprovider/trunk/src/zope/contentprovider/configure.zcml

-=-
Modified: zope.contentprovider/trunk/CHANGES.txt
===================================================================
--- zope.contentprovider/trunk/CHANGES.txt	2009-12-23 12:39:11 UTC (rev 107001)
+++ zope.contentprovider/trunk/CHANGES.txt	2009-12-23 13:10:57 UTC (rev 107002)
@@ -5,6 +5,10 @@
 3.6.1 (unreleased)
 ------------------
 
+- Ensure that our configure.zcml can be loaded without requiring further
+  dependencies. It uses a ``tales:expressiontype`` directive defined in
+  zope.app.pagetemplate. We keep that dependency optional, as not all consumers
+  of this package use ZCML to configure the expression type.
 
 3.6.0 (2009-12-22)
 ------------------

Modified: zope.contentprovider/trunk/src/zope/contentprovider/configure.zcml
===================================================================
--- zope.contentprovider/trunk/src/zope/contentprovider/configure.zcml	2009-12-23 12:39:11 UTC (rev 107001)
+++ zope.contentprovider/trunk/src/zope/contentprovider/configure.zcml	2009-12-23 13:10:57 UTC (rev 107002)
@@ -7,11 +7,15 @@
 
   <interface interface=".interfaces.ITALESProviderExpression" />
 
-  <tales:expressiontype
-      name="provider"
-      handler=".tales.TALESProviderExpression"
-      />
+  <configure zcml:condition="installed zope.app.pagetemplate">
 
+    <tales:expressiontype
+        name="provider"
+        handler=".tales.TALESProviderExpression"
+        />
+
+  </configure>
+
   <apidoc:bookchapter
       id="contentprovider"
       title="Content Providers"



More information about the checkins mailing list