[Zope3-checkins] CVS: Zope3/src/zope/app/browser/content - configure.zcml:1.27
Jim Fulton
jim@zope.com
Thu, 12 Jun 2003 05:31:20 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/content
In directory cvs.zope.org:/tmp/cvs-serv26395/src/zope/app/browser/content
Modified Files:
configure.zcml
Log Message:
Significantly refactored the contents view:
- Ported the basic template from the rotterdam skin.
In-place add now works for all uses of this view.
- Added in-place rename. When the rename button is selected, the
contents are redisplated with the ids for the selected items
displayed as text inputs.
In addition, in the normal contents display, if you click just after
a name, the contents will be redisplayed with than name editable.
- Added in-place title editing. Clicking on a title (or the locatioon
where a title would be displayed), causes the contents to be
redisplayed with a text field for editing the title.
- When performing an in-place operation, submit and cancel buttons are
displayed rather than the normal buttons.
- The view is now a self-posting form with a single url.
=== Zope3/src/zope/app/browser/content/configure.zcml 1.26 => 1.27 ===
--- Zope3/src/zope/app/browser/content/configure.zcml:1.26 Wed Jun 11 09:47:57 2003
+++ Zope3/src/zope/app/browser/content/configure.zcml Thu Jun 12 05:30:49 2003
@@ -248,29 +248,28 @@
file="folder_icon.gif"
/>
- <browser:menuItems menu="zmi_views"
- for="zope.app.interfaces.content.folder.IFolder">
-
- <browser:menuItem title="Contents"
- action="@@contents.html"
- />
-
- </browser:menuItems>
-
<browser:menuItem menu="add_content"
for="zope.app.interfaces.container.IAdding"
title="Folder" action="Folder"
description="A simple Folder."
/>
- <browser:pages
+ <browser:page
+ name="contents.html"
+ menu="zmi_views" title="Contents"
for="zope.app.interfaces.content.folder.IFolder"
- permission="zope.View"
- class="zope.app.browser.container.contents.Contents">
-
- <browser:page name="index.html" attribute="index" />
+ permission="zope.ManageContent"
+ class="zope.app.browser.container.contents.Contents"
+ attribute="contents"
+ />
- </browser:pages>
+ <browser:page
+ name="index.html"
+ for="zope.app.interfaces.content.folder.IFolder"
+ permission="zope.View"
+ class="zope.app.browser.container.contents.Contents"
+ attribute="index"
+ />
<browser:page
for="zope.app.interfaces.content.folder.IFolder"