[z3-checkins] r22483 - z3/sqlos/trunk/src/sqlos

jinty at codespeak.net jinty at codespeak.net
Sat Jan 21 17:35:20 CET 2006


Author: jinty
Date: Sat Jan 21 17:35:19 2006
New Revision: 22483

Modified:
   z3/sqlos/trunk/src/sqlos/ftesting.zcml
Log:
Instead of implementing IContentContainer for our testing Multicontainer (which does not work anymore) registr the adding View ourselves.

Modified: z3/sqlos/trunk/src/sqlos/ftesting.zcml
==============================================================================
--- z3/sqlos/trunk/src/sqlos/ftesting.zcml	(original)
+++ z3/sqlos/trunk/src/sqlos/ftesting.zcml	Sat Jan 21 17:35:19 2006
@@ -120,8 +120,20 @@
 
   <!-- Set up a MultiContainer which can contain the Sample People-->
 
+  <!--we have to register an adding view for the container, we just use the
+      standard one. Should this be defined on all SQLObject containrs?-->
+  <browser:view
+      name="+"
+      menu="zmi_actions" title="Add SQLObjects"
+      for="sqlos.testing.sampleperson.IMultiContainer"
+      permission="zope.ManageContent"
+      class="zope.app.container.browser.adding.Adding"
+      >
+    <browser:page name="index.html" attribute="index"/>
+    <browser:page name="action.html" attribute="action"/>
+  </browser:view>
+
   <content class="sqlos.testing.sampleperson.MultiContainer">
-    <implements interface="zope.app.container.interfaces.IContentContainer" />
     <factory
         id="sqlos.testing.sampleperson.MultiContainer"
         title="SQLObject Multi Container (Dogs and people)"


More information about the z3-checkins mailing list