[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container - index_browse.pt:1.1.2.1 adding.py:1.8.2.1
Jim Fulton
jim@zope.com
Thu, 17 Apr 2003 06:18:23 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/container
In directory cvs.zope.org:/tmp/cvs-serv27463/src/zope/app/browser/container
Modified Files:
Tag: uk-april-2003-usability-branch
adding.py
Added Files:
Tag: uk-april-2003-usability-branch
index_browse.pt
Log Message:
Checking Seb's sprint work into a branch
=== Added File Zope3/src/zope/app/browser/container/index_browse.pt ===
<html metal:use-macro="views/standard_macros/page" i18n:domain="zope">
<head>
<style metal:fill-slot="headers" type="text/css">
<!--
.ContentIcon {
width: 20px;
}
.ContentTitle {
text-align: left;
}
-->
</style>
</head>
<body>
<div class="body">
<table
id="sortable" class="listing" summary="Content listing"
cellpadding="2" cellspacing="0"
i18n:attributes="summary"
>
<thead>
<tr>
<th> </th>
<th i18n:translate="">Name</th>
<th i18n:translate="">Title</th>
<th i18n:translate="">Created</th>
<th i18n:translate="">Modified</th>
</tr>
</thead>
<tbody>
<tr tal:repeat="info view/listContentInfo">
<td>
<a
href="#"
tal:attributes="href info/url"
tal:content="structure info/icon|default"
>
</a>
</td>
<td class="ContentTitle">
<a href="subfolder_id"
tal:attributes="href info/url"
tal:content="info/id"
>ID here</a>
</td>
<td><span tal:content="info/title|default"> </span></td>
<td><span tal:content="info/created|default"> </span></td>
<td><span tal:content="info/modified|default"> </span></td>
</tr>
<tr tal:condition="nothing">
<td class="ContentIcon">
<img alt="Document" src="../../ZMI/www/document_icon.gif" />
</td>
<td class="ContentTitle">
<a href="document_id">Document Title or ID here</a>
</td>
</tr>
</tbody>
</table>
<br />
</div>
</body>
</html>
=== Zope3/src/zope/app/browser/container/adding.py 1.8 => 1.8.2.1 ===
--- Zope3/src/zope/app/browser/container/adding.py:1.8 Tue Apr 8 17:44:35 2003
+++ Zope3/src/zope/app/browser/container/adding.py Thu Apr 17 06:17:53 2003
@@ -118,7 +118,7 @@
return
if not id:
- raise ValueError(_(u"You must specify an id"))
+ raise UserError(_(u"You must specify an id"))
self.contentName = id