src/ztfy/utils/zodb.zcml
branchZTK-1.1
changeset 169 b4b587dd45ca
child 170 a08e9a1c5b07
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ztfy/utils/zodb.zcml	Thu Sep 20 17:06:22 2012 +0200
@@ -0,0 +1,21 @@
+<configure
+	xmlns="http://namespaces.zope.org/zope"
+	xmlns:i18n="http://namespaces.zope.org/i18n"
+	i18n_domain="ztfy.utils">
+
+	<!-- IPersistent adapters copied from zc.twist package -->
+	<adapter
+		factory=".zodb.transactionManager" />
+
+	<class class=".zodb.ZEOConnectionUtility">
+		<implements
+			interface="zope.annotation.interfaces.IAttributeAnnotatable" />
+		<require
+			interface=".interfaces.IZEOConnection"
+			permission="zope.View" />
+		<require
+			set_schema=".interfaces.IZEOConnection"
+			permission="zope.ManageServices" />
+	</class>
+
+</configure>
\ No newline at end of file