root/gp/zope/xml/configure.zcml

Revision 262, 0.7 KB (checked in by gawel, 21 months ago)

=add findall api

Line  
1 <configure xmlns="http://namespaces.zope.org/zope">
2
3   <adapter
4       for="lxml.etree._Element"
5       provides="zope.traversing.interfaces.IPathAdapter"
6       factory=".talesapi.FindAPI"
7       name="find"
8       />
9
10   <class class=".talesapi.FindAPI">
11     <allow interface="zope.tales.interfaces.ITALESFunctionNamespace"/>
12     <allow attributes="__getattr__"/>
13   </class>
14
15   <adapter
16       for="lxml.etree._Element"
17       provides="zope.traversing.interfaces.IPathAdapter"
18       factory=".talesapi.FindAllAPI"
19       name="findall"
20       />
21
22   <class class=".talesapi.FindAllAPI">
23     <allow interface="zope.tales.interfaces.ITALESFunctionNamespace"/>
24     <allow attributes="__getattr__"/>
25   </class>
26
27 </configure>
Note: See TracBrowser for help on using the browser.