zcml

What are the valid conditions for zcml:condition?

≡放荡痞女 提交于 2019-11-28 00:40:10
问题 ZCML can include conditional directives of the form <configure zcml:condition="installed some.python.package"> (conditional configuration directives) </configure> What is the expression syntax for condition ? Is 'or' allowed? 回答1: I always have to look this up too. The syntax is very simple, and or is not part of the syntax, I am afraid. As you can see from the documentation in the zope.configuration source code, the syntax is always of the form verb arguments , where verb is one of have ,