5bd5a30f2c58196d25ee462b90c7d3dafd6d8da0
[photoprint.git] / configure.zcml
1 <!--
2 $Id: configure.zcml 650 2009-02-04 14:28:17Z pin $
3 $URL: http://svn.luxia.fr/svn/labo/projects/zope/photoprint/trunk/configure.zcml $
4 -->
5 <configure
6 xmlns="http://namespaces.zope.org/zope"
7 xmlns:meta="http://namespaces.zope.org/meta"
8 xmlns:cmf="http://namespaces.zope.org/cmf"
9 xmlns:five="http://namespaces.zope.org/five"
10 xmlns:i18n="http://namespaces.zope.org/i18n">
11
12 <include file="permissions.zcml"/>
13 <cmf:registerDirectory directory="skins" name="photoprint" recursive="True"/>
14 <i18n:registerTranslations directory="locales"/>
15
16 <five:registerClass
17 class=".order.PrintOrderTemplate"
18 meta_type="Print order template"
19 permission="photoprint.AddPrintOrderTemplate"
20 />
21 <utility
22 component=".order.PrintOrderTemplateFactory"
23 name="photoprint.order_template"
24 />
25
26 <meta:redefinePermission from="zope2.Public" to="zope.Public" />
27 <five:registerClass
28 class=".order.PrintOrder"
29 meta_type="Print order"
30 permission="photoprint.AddPrintOrder"
31 />
32
33 <utility
34 component=".order.PrintOrderFactory"
35 name="photoprint.order"
36 />
37 </configure>