eggification
[PlinnDocument.git] / Products / PlinnDocument / configure.zcml
diff --git a/Products/PlinnDocument/configure.zcml b/Products/PlinnDocument/configure.zcml
new file mode 100644 (file)
index 0000000..e72308a
--- /dev/null
@@ -0,0 +1,32 @@
+<configure
+    xmlns="http://namespaces.zope.org/zope"
+    xmlns:five="http://namespaces.zope.org/five"
+    xmlns:cmf="http://namespaces.zope.org/cmf"
+    xmlns:genericsetup="http://namespaces.zope.org/genericsetup">
+
+  <cmf:registerDirectory directory="skins" name="plinn_document" recursive="True"/>
+
+  <five:registerClass
+      class=".PlinnDocument.PlinnDocument"
+      meta_type="Plinn Document"
+      permission="cmf.AddPortalContent"
+      />
+  <utility
+      component=".PlinnDocument.PlinnDocumentFactory"
+      name="plinndocument"
+      />
+  
+  <genericsetup:registerProfile
+      name="default"
+      title="Plinn Document"
+      description="Adds Plinn document content type."
+      provides="Products.GenericSetup.interfaces.EXTENSION"
+      for="Products.CMFCore.interfaces.ISiteRoot"
+      />
+  
+  <adapter
+    provides="Products.Plinn.interfaces.IContentHistory"
+    for=".interfaces.IPlinnDocument"
+    factory=".HistoryAdapters.PlinnDocumentHistory"/>
+
+</configure>
\ No newline at end of file