Author: jvloothuis
Date: Sun Nov 11 09:24:05 2007
New Revision: 48541

Added:
   kukit/kss.demo/branch/kss-zope-transition/kss/demo/configure-z3.zcml
Modified:
   kukit/kss.demo/branch/kss-zope-transition/kss/demo/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/configure-z3.zcml
==============================================================================
--- (empty file)
+++ kukit/kss.demo/branch/kss-zope-transition/kss/demo/configure-z3.zcml        
Sun Nov 11 09:24:05 2007
@@ -0,0 +1,53 @@
+<configure xmlns="http://namespaces.zope.org/zope";
+           xmlns:browser="http://namespaces.zope.org/browser";
+           xmlns:five="http://namespaces.zope.org/five";
+           xmlns:kss="http://namespaces.zope.org/kss";
+           xmlns:zcml="http://namespaces.zope.org/zcml";
+                  i18n_domain="kss"
+                  >
+
+  <include package="kss.core"/>
+
+  <configure zcml:condition="have compat_not_five">
+
+    <class class=".simplecontent_z3.SimpleContent">
+      <implements
+        interface=".interfaces.ISimpleContent"
+        />
+    </class>
+
+    <browser:addform
+      label="Add kss demos folder"
+      name="AddSimpleContent.html"
+      schema=".interfaces.ISimpleContent"
+      content_factory=".simplecontent_z3.SimpleContent"
+      fields=""
+      permission="zope.ManageContent"
+      />
+
+    <browser:addMenuItem
+      class=".simplecontent_z3.SimpleContent"
+      title="KSS demos folder"
+      description="A folder to hold a set of KSS demos"
+      permission="zope.ManageContent"
+      view="AddSimpleContent.html"
+      />
+
+  </configure>
+    
+  <!-- Finally, include the browser packages -->
+  <include package=".browser" />
+
+  <!-- Bind my own listener to dispatch events to
+       demo components.
+  -->
+  <subscriber handler=".events.dispatchRegistration"/>
+
+  <!-- Register my registry as a global utility -->
+  <utility
+    factory=".registry.KSSDemoRegistry"
+    provides="kss.demo.interfaces.IKSSDemoRegistry"
+    permission="zope.Public"
+    />
+
+</configure>

Modified: kukit/kss.demo/branch/kss-zope-transition/kss/demo/configure.zcml
==============================================================================
--- kukit/kss.demo/branch/kss-zope-transition/kss/demo/configure.zcml   
(original)
+++ kukit/kss.demo/branch/kss-zope-transition/kss/demo/configure.zcml   Sun Nov 
11 09:24:05 2007
@@ -8,9 +8,6 @@
 
   <include package="kss.core"/>
 
-  <!-- Things to do only on Zope2 -->
-  <configure zcml:condition="have compat_five">
-
     <interface
       interface=".interfaces.ISimpleContent"
       type="zope.app.content.interfaces.IContentType"
@@ -48,35 +45,6 @@
       global="True"
       />
 
-  </configure>
-
-  <!-- Things to do only on Zope3 -->
-  <configure zcml:condition="have compat_not_five">
-
-    <class class=".simplecontent_z3.SimpleContent">
-      <implements
-        interface=".interfaces.ISimpleContent"
-        />
-    </class>
-
-    <browser:addform
-      label="Add kss demos folder"
-      name="AddSimpleContent.html"
-      schema=".interfaces.ISimpleContent"
-      content_factory=".simplecontent_z3.SimpleContent"
-      fields=""
-      permission="zope.ManageContent"
-      />
-
-    <browser:addMenuItem
-      class=".simplecontent_z3.SimpleContent"
-      title="KSS demos folder"
-      description="A folder to hold a set of KSS demos"
-      permission="zope.ManageContent"
-      view="AddSimpleContent.html"
-      />
-
-  </configure>
     
   <!-- Finally, include the browser packages -->
   <include package=".browser" />
_______________________________________________
Kukit-checkins mailing list
[email protected]
http://codespeak.net/mailman/listinfo/kukit-checkins

Reply via email to