[z3-checkins] r28627 - z3/Sfive/trunk

philikon at codespeak.net philikon at codespeak.net
Sat Jun 10 17:02:45 CEST 2006


Author: philikon
Date: Sat Jun 10 17:02:38 2006
New Revision: 28627

Modified:
   z3/Sfive/trunk/configure.zcml
Log:
Register formlib forms instead of zope.app.form-based ones.
Register IFactory utility


Modified: z3/Sfive/trunk/configure.zcml
==============================================================================
--- z3/Sfive/trunk/configure.zcml	(original)
+++ z3/Sfive/trunk/configure.zcml	Sat Jun 10 17:02:38 2006
@@ -27,6 +27,11 @@
         />
   </class>
 
+  <utility
+      component=".presentation.PresentationFactory"
+      name="sfive.Presentation"
+      />
+
   <five:registerClass
       class=".presentation.Presentation"
       meta_type="Sfive Presentation"
@@ -37,21 +42,20 @@
 
   <adapter factory=".presentation.PresentationSize" />
 
-  <browser:addform
-      schema=".interfaces.IPresentation"
-      content_factory=".presentation.Presentation"
-      label="Add Presentation"
-      name="sfive.Presentation"
-      permission="sfive.AddPresentations" 
-      />
-
-  <browser:editform
-      schema=".interfaces.IPresentation"
-      label="Edit"
+  <browser:page
+      for=".interfaces.IPresentation"
       name="edit.html"
+      class=".browser.EditPresentation"
       permission="sfive.EditPresentations" 
       />
 
+  <browser:page
+      for="zope.app.container.interfaces.IAdding"
+      name="sfive.Presentation"
+      class=".browser.AddPresentation"
+      permission="sfive.AddPresentations" 
+      />
+
   <browser:defaultView
       for=".interfaces.IPresentation"
       name="index.html"


More information about the z3-checkins mailing list