[Zope3-checkins] CVS: Zope3/src/zope/app/pythonpage - configure.zcml:1.1.2.2

Philipp von Weitershausen philikon at philikon.de
Mon Feb 23 06:02:53 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/pythonpage
In directory cvs.zope.org:/tmp/cvs-serv19938/pythonpage

Modified Files:
      Tag: philikon-movecontent-branch
	configure.zcml 
Log Message:
* Use preview template from zope.app.preview.
* Cleanup


=== Zope3/src/zope/app/pythonpage/configure.zcml 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/pythonpage/configure.zcml:1.1.2.1	Fri Feb 20 14:41:49 2004
+++ Zope3/src/zope/app/pythonpage/configure.zcml	Mon Feb 23 06:02:52 2004
@@ -14,27 +14,34 @@
         id="zope.app.pythonpage.PythonPage"
         permission="zope.ManageContent"
         title="Python Page"
-        description="A simple, content-based Python Page" />
+        description="A simple, content-based Python Page"
+        />
   
     <require
         permission="zope.View"
-        interface=".IPythonPage" />
+        interface=".IPythonPage"
+        />
   
     <require
         permission="zope.ManageContent"
-        set_attributes="source contentType" />
+        set_attributes="source contentType"
+        />
   
     <implements
         interface="zope.app.interfaces.annotation.IAttributeAnnotatable" />
   
   </content>
 
+
+  <!-- browser directives -->
+
   <browser:page
       name="index.html"
       for=".IPythonPage"
       class=".browser.PythonPageEval"
       attribute="index"
-      permission="zope.View" />
+      permission="zope.View"
+      />
 
   <browser:addform
       label="Add Python Page"
@@ -42,7 +49,7 @@
       schema=".IPythonPage"
       content_factory=".PythonPage"
       permission="zope.ManageContent"
-      menu="add_content" title="Python Page"/>
+      menu="add_content" title="Python Page"
       />
 
   <browser:editform
@@ -53,13 +60,20 @@
       class=".browser.PythonPageEditView"
       template="edit.pt"
       permission="zope.ManageContent" 
-      menu="zmi_views" title="Edit"/>
+      menu="zmi_views" title="Edit"
+      />
 
-  <browser:page
-      for=".IPythonPage"
-      name="preview.html"
-      menu="zmi_views" title="Preview"
-      template="preview.pt"
-      permission="zope.ManageContent" />
+
+  <!-- Preview view - requires zope.app.preview -->
+
+  <configure package="zope.app.preview">
+    <browser:page
+        for="zope.app.pythonpage.IPythonPage"
+        name="preview.html"
+        template="preview.pt"
+        permission="zope.ManageContent"
+        menu="zmi_views" title="Preview"
+        />
+  </configure>
 
 </configure>




More information about the Zope3-Checkins mailing list