[Checkins] SVN: lovely.viewcache/trunk/src/lovely/viewcache/ftesting.zcml be compatible with older zope versions

Baiju M mbaiju at zeomega.com
Wed Feb 21 09:12:20 EST 2007


Bernd Dorn wrote:

>Log message for revision 72745:
>  be compatible with older zope versions
>
>Changed:
>  U   lovely.viewcache/trunk/src/lovely/viewcache/ftesting.zcml
>
>-=-
>Modified: lovely.viewcache/trunk/src/lovely/viewcache/ftesting.zcml
>===================================================================
>--- lovely.viewcache/trunk/src/lovely/viewcache/ftesting.zcml	2007-02-21 11:37:25 UTC (rev 72744)
>+++ lovely.viewcache/trunk/src/lovely/viewcache/ftesting.zcml	2007-02-21 13:47:58 UTC (rev 72745)
>@@ -3,7 +3,7 @@
>            xmlns:meta="http://namespaces.zope.org/meta"
>            i18n_domain="zope">
> 
>-  <include package="zope.app.zcmlfiles" />
>+  <include package="zope.app" />
>  
>

I think you can also do like this:

  <include
      zcml:condition="installed zope.app.zcmlfiles"
      package="zope.app.zcmlfiles"
      />
  <include
      zcml:condition="not-installed zope.app.zcmlfiles"
      package="zope.app"
      />

(Please verify this, I didn't tried this yet.)

Regards,
Baiju M



More information about the Checkins mailing list