Author: jvloothuis
Date: Sun Nov 11 09:34:19 2007
New Revision: 48542
Added:
kukit/kss.demo/branch/kss-zope-transition/kss/demo/browser/configure-z3.zcml
Modified:
kukit/kss.demo/branch/kss-zope-transition/kss/demo/browser/configure.zcml
Log:
Remove have_five etc. from the configure and made to seperate
configures, one for Zope 3 and one for Zope 2. This avoids breakage on
the Zope trunk.
Added:
kukit/kss.demo/branch/kss-zope-transition/kss/demo/browser/configure-z3.zcml
==============================================================================
--- (empty file)
+++
kukit/kss.demo/branch/kss-zope-transition/kss/demo/browser/configure-z3.zcml
Sun Nov 11 09:34:19 2007
@@ -0,0 +1,85 @@
+<configure xmlns="http://namespaces.zope.org/browser"
+ xmlns:zope="http://namespaces.zope.org/zope"
+ xmlns:zcml="http://namespaces.zope.org/zcml"
+ i18n_domain="kss"
+ >
+
+ <!--
+ Define resources for the demo central
+ -->
+
+ <!-- Things to do only on Zope2 -->
+ <zope:configure zcml:condition="have compat_five">
+
+ <page
+ for="kss.demo.interfaces.ISimpleContent"
+ template="kss_demo_index.pt"
+ name="index.html"
+ permission="zope.View"
+ />
+
+ </zope:configure>
+
+ <!-- Things to do only on Zope3 -->
+ <zope:configure zcml:condition="have compat_not_five">
+
+ <page
+ for="kss.demo.interfaces.ISimpleContent"
+ template="kss_demo_index.pt"
+ name="index.html"
+ permission="zope.View"
+ menu="zmi_views"
+ title="View demos"
+ />
+
+ </zope:configure>
+
+ <defaultView
+ for="kss.demo.interfaces.ISimpleContent"
+ name="index.html"
+ />
+
+ <page
+ for="kss.demo.interfaces.ISimpleContent"
+ template="header_macros.pt"
+ name="header_macros"
+ permission="zope.View"
+ />
+
+ <page
+ for="kss.demo.interfaces.ISimpleContent"
+ template="body_macros.pt"
+ name="body_macros"
+ permission="zope.View"
+ />
+
+ <resource
+ file="demo.css"
+ name="demo.css"
+ />
+
+ <!-- View for accessing the utility -->
+ <page
+ for="*"
+ name="kss_demo_registry"
+ class=".registry.KSSDemoRegistryView"
+ allowed_attributes="getSortedDemos getDemoGroups"
+ permission="zope.View"
+ />
+
+ <!-- Define a new permission that only Manager has-->
+ <zope:permission
+ id="demo.Manager"
+ title="Demo Manager"
+ />
+
+ <page
+ for="*"
+ name="kss_demo_registry_admin"
+ class=".registry.KSSDemoRegistryAdminView"
+ allowed_attributes="cookSeleniumTests"
+ permission="demo.Manager"
+ />
+
+</configure>
+
Modified:
kukit/kss.demo/branch/kss-zope-transition/kss/demo/browser/configure.zcml
==============================================================================
--- kukit/kss.demo/branch/kss-zope-transition/kss/demo/browser/configure.zcml
(original)
+++ kukit/kss.demo/branch/kss-zope-transition/kss/demo/browser/configure.zcml
Sun Nov 11 09:34:19 2007
@@ -8,9 +8,6 @@
Define resources for the demo central
-->
- <!-- Things to do only on Zope2 -->
- <zope:configure zcml:condition="have compat_five">
-
<page
for="kss.demo.interfaces.ISimpleContent"
template="kss_demo_index.pt"
@@ -18,21 +15,6 @@
permission="zope.View"
/>
- </zope:configure>
-
- <!-- Things to do only on Zope3 -->
- <zope:configure zcml:condition="have compat_not_five">
-
- <page
- for="kss.demo.interfaces.ISimpleContent"
- template="kss_demo_index.pt"
- name="index.html"
- permission="zope.View"
- menu="zmi_views"
- title="View demos"
- />
-
- </zope:configure>
<defaultView
for="kss.demo.interfaces.ISimpleContent"
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins