[Zope3-checkins] CVS: Zope3/src/zope/app/folder/browser - __init__.py:1.2 configure.zcml:1.2 folder.py:1.2 folder_icon.gif:1.2

Philipp von Weitershausen philikon at philikon.de
Tue Feb 24 11:50:00 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/folder/browser
In directory cvs.zope.org:/tmp/cvs-serv26411/src/zope/app/folder/browser

Added Files:
	__init__.py configure.zcml folder.py folder_icon.gif 
Log Message:


Moved Folder to its own package below zope.app, including its
interfaces and browser views.




=== Zope3/src/zope/app/folder/browser/__init__.py 1.1 => 1.2 ===
--- /dev/null	Tue Feb 24 11:50:00 2004
+++ Zope3/src/zope/app/folder/browser/__init__.py	Tue Feb 24 11:49:59 2004
@@ -0,0 +1,2 @@
+#
+# This file is necessary to make this directory a package.


=== Zope3/src/zope/app/folder/browser/configure.zcml 1.1 => 1.2 ===
--- /dev/null	Tue Feb 24 11:50:00 2004
+++ Zope3/src/zope/app/folder/browser/configure.zcml	Tue Feb 24 11:49:59 2004
@@ -0,0 +1,49 @@
+<configure
+    xmlns="http://namespaces.zope.org/zope"
+    xmlns:browser="http://namespaces.zope.org/browser"
+    i18n_domain="zope"
+    >
+
+  <browser:icon
+      name="zmi_icon"
+      for="zope.app.folder.interfaces.IFolder"
+      file="folder_icon.gif"
+      />
+
+  <browser:addMenuItem
+      class="zope.app.folder.Folder"
+      title="Folder"
+      description="Minimal folder"
+      permission="zope.ManageContent"
+      />
+
+  <browser:page
+      name="contents.html"
+      menu="zmi_views" title="Contents"
+      for="zope.app.folder.interfaces.IFolder"
+      permission="zope.ManageContent"
+      class="zope.app.browser.container.contents.Contents"
+      attribute="contents"
+      />
+
+  <browser:page
+      name="index.html"
+      for="zope.app.folder.interfaces.IFolder"
+      permission="zope.View"
+      class="zope.app.browser.container.contents.Contents"
+      attribute="index"
+      />
+
+  <!-- Preview view - requires zope.app.preview -->
+
+  <configure package="zope.app.preview">
+    <browser:page
+        for="zope.app.folder.interfaces.IFolder"
+        name="preview.html"
+        template="preview.pt"
+        permission="zope.ManageContent"
+        menu="zmi_views" title="Preview"
+        />
+  </configure>
+
+</configure>


=== Zope3/src/zope/app/folder/browser/folder.py 1.1 => 1.2 ===
--- /dev/null	Tue Feb 24 11:50:00 2004
+++ Zope3/src/zope/app/folder/browser/folder.py	Tue Feb 24 11:49:59 2004
@@ -0,0 +1,25 @@
+##############################################################################
+#
+# Copyright (c) 2002 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Folder-specific view classes
+
+$Id$
+"""
+from zope.interface import implements
+from zope.app.browser.container.adding import Adding
+from zope.app.folder.interfaces import IFolderAdding
+
+#XXX this is currently not used
+
+class FolderAdding(Adding):
+    implements(IFolderAdding)


=== Zope3/src/zope/app/folder/browser/folder_icon.gif 1.1 => 1.2 ===
  <Binary-ish file>



More information about the Zope3-Checkins mailing list