]> CRI, Mines Paris - PSL - photoprint.git/blobdiff - Products/photoprint/configure.zcml
eggification
[photoprint.git] / Products / photoprint / configure.zcml
diff --git a/Products/photoprint/configure.zcml b/Products/photoprint/configure.zcml
new file mode 100644 (file)
index 0000000..2df6ffc
--- /dev/null
@@ -0,0 +1,37 @@
+<!--
+
+
+-->
+<configure
+    xmlns="http://namespaces.zope.org/zope"
+    xmlns:meta="http://namespaces.zope.org/meta"
+    xmlns:cmf="http://namespaces.zope.org/cmf"
+    xmlns:five="http://namespaces.zope.org/five"
+    xmlns:i18n="http://namespaces.zope.org/i18n">
+
+  <include file="permissions.zcml"/>
+  <cmf:registerDirectory directory="skins" name="photoprint" recursive="True"/>
+  <i18n:registerTranslations directory="locales"/>
+
+  <five:registerClass
+      class=".order.PrintOrderTemplate"
+      meta_type="Print order template"
+      permission="photoprint.AddPrintOrderTemplate"
+      />
+  <utility
+      component=".order.PrintOrderTemplateFactory"
+      name="photoprint.order_template"
+      />
+  
+  <meta:redefinePermission from="zope2.Public" to="zope.Public" />
+  <five:registerClass
+      class=".order.PrintOrder"
+      meta_type="Print order"
+      permission="photoprint.AddPrintOrder"
+      />
+
+  <utility
+      component=".order.PrintOrderFactory"
+      name="photoprint.order"
+      />
+</configure>