[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container - configure.zcml:1.12 contents.pt:1.6 contents.py:1.24
Sidnei da Silva
sidnei@x3ng.com.br
Tue, 1 Jul 2003 11:28:02 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/container
In directory cvs.zope.org:/tmp/cvs-serv20899/src/zope/app/browser/container
Modified Files:
configure.zcml contents.pt contents.py
Log Message:
Whitespace
=== Zope3/src/zope/app/browser/container/configure.zcml 1.11 => 1.12 ===
--- Zope3/src/zope/app/browser/container/configure.zcml:1.11 Thu Jun 12 05:30:13 2003
+++ Zope3/src/zope/app/browser/container/configure.zcml Tue Jul 1 11:27:31 2003
@@ -1,8 +1,8 @@
<zopeConfigure xmlns='http://namespaces.zope.org/browser'>
-
+
<view
for="zope.app.interfaces.container.IContentContainer"
- name="+"
+ name="+"
menu="zmi_actions" title="Add"
class="zope.app.browser.container.adding.Adding"
permission="zope.ManageContent"
@@ -11,21 +11,21 @@
<page name="index.html" template="add.pt" />
<page name="action.html" attribute="action" />
-
+
</view>
<page
for="zope.app.interfaces.container.IReadContainer"
- name="find.html"
+ name="find.html"
menu="zmi_actions"
title="Find"
- permission="zope.ManageContent"
+ permission="zope.ManageContent"
class="zope.app.browser.container.find.Find"
- attribute="index"
+ attribute="index"
/>
<page for="zope.app.interfaces.container.IWriteContainer"
- permission="zope.ManageContent"
+ permission="zope.ManageContent"
name="commonTasks"
class="zope.app.browser.container.contents.Contents"
template="commontasks.pt" />
=== Zope3/src/zope/app/browser/container/contents.pt 1.5 => 1.6 ===
--- Zope3/src/zope/app/browser/container/contents.pt:1.5 Wed Jun 25 14:43:03 2003
+++ Zope3/src/zope/app/browser/container/contents.pt Tue Jul 1 11:27:31 2003
@@ -22,14 +22,14 @@
/>
<div class="page_error"
- tal:condition="view/error"
+ tal:condition="view/error"
tal:content="view/error">
Error message
</div>
<table id="sortable" class="listing" summary="Content listing">
-
- <thead>
+
+ <thead>
<tr>
<th> </th>
<th>Name</th>
@@ -53,7 +53,7 @@
<metal:block tal:define="supportsRename view/supportsRename"
tal:repeat="item container_contents">
<tr tal:define="oddrow repeat/item/odd; url item/url"
- tal:attributes="class python:oddrow and 'even' or 'odd'" >
+ tal:attributes="class python:oddrow and 'even' or 'odd'" >
<td>
<input type="checkbox" class="noborder" name="ids:list" id="#"
value="#"
@@ -61,25 +61,25 @@
id item/cb_id;
checked request/ids_checked|nothing;"/>
</td>
- <td><a href="#"
- tal:attributes="href
+ <td><a href="#"
+ tal:attributes="href
string:${url}/@@SelectedManagementView.html"
tal:content="structure item/icon|default">
</a
><span tal:condition="item/rename"
- ><input name="new_value:list"
+ ><input name="new_value:list"
tal:attributes="value item/id"
/><input type="hidden" name="rename_ids:list" value=""
tal:attributes="value item/rename"
/></span
><span tal:condition="not:item/rename">
- <a href="#"
- tal:attributes="href
+ <a href="#"
+ tal:attributes="href
string:${url}/@@SelectedManagementView.html"
tal:content="item/id"
>foo</a
- ><a href="#"
- tal:attributes="href
+ ><a href="#"
+ tal:attributes="href
string:${request/URL}?rename_ids:list=${item/id}"
tal:condition="supportsRename"
> </a
@@ -90,16 +90,16 @@
tal:attributes="value item/title|nothing"
tal:condition="item/retitle"
/>
- <a href="#"
- tal:attributes="href
+ <a href="#"
+ tal:attributes="href
string:${request/URL}?retitle_id=${item/id}"
tal:condition="item/retitleable"
tal:content="item/title|default"
- > </a>
- <span
+ > </a>
+ <span
tal:condition="item/plaintitle"
tal:content="item/title|default"
- > </span>
+ > </span>
</td>
<td><span tal:attributes="size item/size/sizeForSorting"
tal:content="item/size/sizeForDisplay"> </span></td>
@@ -110,25 +110,25 @@
</tr>
</metal:block>
- </tbody>
+ </tbody>
</table>
<div tal:condition="view/normalButtons">
<input type="submit" name="container_rename_button" value="Rename"
- i18n:attributes="value container_rename_button"
+ i18n:attributes="value container_rename_button"
tal:condition="view/supportsRename"
/>
<input type="submit" name="container_cut_button" value="Cut"
- i18n:attributes="value container_cut_button"
+ i18n:attributes="value container_cut_button"
tal:condition="view/supportsCut"
/>
<input type="submit" name="container_copy_button" value="Copy"
- i18n:attributes="value container_copy_button"
+ i18n:attributes="value container_copy_button"
tal:condition="view/supportsCopy"
/>
<input type="submit" name="container_paste_button" value="Paste"
- tal:condition="view/hasClipboardContents"
- i18n:attributes="value container_paste_button"
+ tal:condition="view/hasClipboardContents"
+ i18n:attributes="value container_paste_button"
/>
<input type="submit" name="container_delete_button" value="Delete"
i18n:attributes="value container_delete_button"
@@ -138,10 +138,10 @@
<div tal:condition="view/specialButtons">
<input type="submit" value="Apply"
- i18n:attributes="value container_apply_button"
+ i18n:attributes="value container_apply_button"
/>
<input type="submit" name="container_cancel_button" value="Cancel"
- i18n:attributes="value container_cancel_button"
+ i18n:attributes="value container_cancel_button"
/>
</div>
=== Zope3/src/zope/app/browser/container/contents.py 1.23 => 1.24 ===
--- Zope3/src/zope/app/browser/container/contents.py:1.23 Wed Jun 18 12:03:32 2003
+++ Zope3/src/zope/app/browser/container/contents.py Tue Jul 1 11:27:31 2003
@@ -110,7 +110,7 @@
self.supportsRename = self.supportsCut and self.supportsPaste
return info
-
+
def _extractContentInfo(self, item):
request = self.request
@@ -123,10 +123,10 @@
elif "rename_ids" in request:
for rename_id in request.get('rename_ids', ()):
rename_ids[rename_id] = rename_id
-
-
+
+
retitle_id = request.get('retitle_id')
-
+
id, obj = item
info = {}
info['id'] = info['cb_id'] = id
@@ -135,7 +135,7 @@
info['url'] = id
info['rename'] = rename_ids.get(id)
info['retitle'] = id == retitle_id
-
+
zmi_icon = zapi.queryView(obj, 'zmi_icon', self.request)
if zmi_icon is None:
@@ -147,7 +147,7 @@
if dc is not None:
info['retitleable'] = id != retitle_id
info['plaintitle'] = 0
-
+
title = dc.title
if title:
info['title'] = title
@@ -207,9 +207,9 @@
adding.action(request['type_name'], new)
-
-
+
+
def removeObjects(self):
"""Remove objects specified in a list of object ids"""
request = self.request
@@ -217,7 +217,7 @@
if not ids:
self.error = _("You didn't specify any ids to remove.")
return
-
+
container = zapi.getAdapter(self.context, IZopeContainer)
for id in ids:
container.__delitem__(id)
@@ -229,7 +229,7 @@
if not ids:
self.error = _("You didn't specify any ids to copy.")
return
-
+
container_path = zapi.getPath(self.context)
user = self.request.user
@@ -293,7 +293,7 @@
annotationsvc = zapi.getService(self.context, 'PrincipalAnnotation')
annotations = annotationsvc.getAnnotations(user)
-
+
clipboard = zapi.getAdapter(annotations, IPrincipalClipboard)
if clipboard.getContents():