[Zope3-checkins] CVS: Zope3/src/zope/app/file/browser -
configure.zcml:1.1.2.2
Philipp von Weitershausen
philikon at philikon.de
Mon Feb 23 05:59:05 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/file/browser
In directory cvs.zope.org:/tmp/cvs-serv19054
Modified Files:
Tag: philikon-movecontent-branch
configure.zcml
Log Message:
Use preview template from zope.app.preview
=== Zope3/src/zope/app/file/browser/configure.zcml 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/file/browser/configure.zcml:1.1.2.1 Fri Feb 20 14:39:47 2004
+++ Zope3/src/zope/app/file/browser/configure.zcml Mon Feb 23 05:59:05 2004
@@ -39,13 +39,6 @@
permission="zope.ManageContent"
/>
- <!--browser:page
- for=".interfaces.IFile"
- name="preview.html"
- menu="zmi_views" title="Preview"
- template="preview.pt"
- permission="zope.ManageContent" /-->
-
<browser:page
for="zope.app.file.interfaces.IFile"
name="index.html"
@@ -57,6 +50,7 @@
<browser:addMenuItem
class="zope.app.file.File"
title="File"
+ description="A File"
permission="zope.ManageContent"
view="zope.app.file.File"
/>
@@ -105,14 +99,6 @@
class=".image.ImageData"
/>
- <!--browser:page
- for="zope.app.file.interfaces.IImage"
- name="preview.html"
- menu="zmi_views" title="Preview"
- template="preview.pt"
- permission="zope.ManageContent"
- /-->
-
<browser:icon
name="zmi_icon"
for="zope.app.file.interfaces.IImage"
@@ -122,6 +108,7 @@
<browser:addMenuItem
class="zope.app.file.image.Image"
title="Image"
+ description="An Image"
permission="zope.ManageContent"
view="zope.app.file.Image"
/>
@@ -133,5 +120,28 @@
name="zope.app.file.Image"
permission="zope.ManageContent"
/>
+
+
+ <!-- Preview views - requires zope.app.preview -->
+
+ <configure package="zope.app.preview">
+
+ <browser:page
+ for="zope.app.file.interfaces.IFile"
+ name="preview.html"
+ template="preview.pt"
+ permission="zope.ManageContent"
+ menu="zmi_views" title="Preview"
+ />
+
+ <browser:page
+ for="zope.app.file.interfaces.IImage"
+ name="preview.html"
+ template="preview.pt"
+ permission="zope.ManageContent"
+ menu="zmi_views" title="Preview"
+ />
+
+ </configure>
</configure>
More information about the Zope3-Checkins
mailing list