Re-defined files default view
authorThierry Florac <thierry.florac@onf.fr>
Wed, 07 May 2014 17:59:51 +0200
changeset 12 63b0865a7580
parent 11 b10ce40a64f4
child 13 1d3b54126eb5
Re-defined files default view
src/ztfy/myams/configure.zcml
--- a/src/ztfy/myams/configure.zcml	Wed May 07 17:59:27 2014 +0200
+++ b/src/ztfy/myams/configure.zcml	Wed May 07 17:59:51 2014 +0200
@@ -67,6 +67,7 @@
 		template="templates/modal-layout.pt"
 		layer=".layer.MyAMSLayer" />
 
+
 	<z3c:pagelet
 		name="index.html"
 		for="*"
@@ -80,6 +81,16 @@
 		layer=".layer.MyAMSLayer" />
 
 
+	<!-- Re-define default files view for MyAMS layer -->
+	<browser:page
+		for="zope.app.file.interfaces.IFile"
+		name="index.html"
+		class="ztfy.file.browser.FileView"
+		attribute="show"
+		layer=".layer.MyAMSLayer"
+		permission="zope.View" />
+
+
 	<!-- Exceptions views -->
 	<browser:page
 		name="error"