Déplacement pour eggification.
[Plinn.git] / Products / Plinn / skins / content / plinn_folder_view.py
diff --git a/Products/Plinn/skins/content/plinn_folder_view.py b/Products/Plinn/skins/content/plinn_folder_view.py
new file mode 100755 (executable)
index 0000000..09af73d
--- /dev/null
@@ -0,0 +1,11 @@
+##parameters=*arg, **kw
+reqOther = context.REQUEST.other
+if hasattr(context, 'index_html') :
+       homePath = context.index_html.getPhysicalPath()
+       folderPath = context.getPhysicalPath()
+       if len(homePath) == len(folderPath) + 1 and homePath[:-1] == folderPath:
+               reqOther['forceTab'] = 'view'
+               return context.index_html(*arg, **kw)
+
+reqOther['forceTab'] = 'folderContents'
+return context.folder_contents(*arg, **kw)
\ No newline at end of file