[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container - contents.pt:1.3 contents.py:1.22
Jim Fulton
jim@zope.com
Thu, 12 Jun 2003 12:35:13 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/container
In directory cvs.zope.org:/tmp/cvs-serv21748/src/zope/app/browser/container
Modified Files:
contents.pt contents.py
Log Message:
Fixed a bug: You could still do an in-place rename by clicking after
a name even for containers that don't support rename.
=== Zope3/src/zope/app/browser/container/contents.pt 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/container/contents.pt:1.2 Thu Jun 12 10:13:01 2003
+++ Zope3/src/zope/app/browser/container/contents.pt Thu Jun 12 12:35:12 2003
@@ -47,7 +47,8 @@
<td></td>
</tr>
- <metal:block tal:repeat="item container_contents">
+ <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'" >
<td>
@@ -77,6 +78,7 @@
><a href="#"
tal:attributes="href
string:${request/URL}?rename_ids:list=${item/id}"
+ tal:condition="supportsRename"
> </a
></span
></td>
=== Zope3/src/zope/app/browser/container/contents.py 1.21 => 1.22 ===
--- Zope3/src/zope/app/browser/container/contents.py:1.21 Thu Jun 12 05:30:48 2003
+++ Zope3/src/zope/app/browser/container/contents.py Thu Jun 12 12:35:12 2003
@@ -41,6 +41,7 @@
message = ''
normalButtons = False
specialButtons = False
+ supportsRename = False
def listContentInfo(self):
request = self.request