Author: jvloothuis
Date: Sat Oct 13 14:47:03 2007
New Revision: 47426

Added:
   kukit/kss.core/trunk/kss/core/permission.zcml
Modified:
   kukit/kss.core/trunk/kss/core/configure.zcml
   kukit/kss.demo/trunk/kss/demo/configure.zcml
Log:

Fixed the setup of the zope.View permission on Zope 2. This makes sure
it is always defined before being used.


Modified: kukit/kss.core/trunk/kss/core/configure.zcml
==============================================================================
--- kukit/kss.core/trunk/kss/core/configure.zcml        (original)
+++ kukit/kss.core/trunk/kss/core/configure.zcml        Sat Oct 13 14:47:03 2007
@@ -2,6 +2,9 @@
            xmlns:browser="http://namespaces.zope.org/browser";
            xmlns:zcml="http://namespaces.zope.org/zcml";
            xmlns:five="http://namespaces.zope.org/five";>
+
+    <include file="permission.zcml"/>
+
  
     <!-- This include MUST come first! -->
     <include package=".pluginregistry"/>

Added: kukit/kss.core/trunk/kss/core/permission.zcml
==============================================================================
--- (empty file)
+++ kukit/kss.core/trunk/kss/core/permission.zcml       Sat Oct 13 14:47:03 2007
@@ -0,0 +1,10 @@
+<configure
+    xmlns:zcml="http://namespaces.zope.org/zcml";
+    xmlns="http://namespaces.zope.org/zope";>
+
+     <permission
+        id="zope.View"
+        title="View"
+        zcml:condition="installed kss.demo"
+    />
+</configure>
\ No newline at end of file

Modified: kukit/kss.demo/trunk/kss/demo/configure.zcml
==============================================================================
--- kukit/kss.demo/trunk/kss/demo/configure.zcml        (original)
+++ kukit/kss.demo/trunk/kss/demo/configure.zcml        Sat Oct 13 14:47:03 2007
@@ -6,15 +6,11 @@
                   i18n_domain="kss"
                   >
 
+  <include package="kss.core"/>
+
   <!-- Things to do only on Zope2 -->
   <configure zcml:condition="have compat_five">
 
-    <!-- Define a new permission -->
-     <permission
-        id="zope.View"
-        title="View"
-    />
-
     <interface
       interface=".interfaces.ISimpleContent"
       type="zope.app.content.interfaces.IContentType"
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins

Reply via email to