Skip to content

Commit 911d6a9

Browse files
author
Richard Jones
committed
doc fixes, one more fix to the permissions-in-listings fix
1 parent 1c5d50a commit 911d6a9

File tree

3 files changed

+44
-5
lines changed

3 files changed

+44
-5
lines changed

doc/customizing.txt

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Customising Roundup
33
===================
44

5-
:Version: $Revision: 1.161.2.6 $
5+
:Version: $Revision: 1.161.2.7 $
66

77
.. This document borrows from the ZopeBook section on ZPT. The original is at:
88
http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
@@ -1925,7 +1925,23 @@ pretty Date properties - render the date as "dd Mon YYYY" (eg. "19
19251925
in the standard ``strftime`` call (see the `Python Library
19261926
Reference: time module`__)
19271927
menu only on Link and Multilink properties - render a form select
1928-
list for this property
1928+
list for this property. Takes a number of optional arguments
1929+
1930+
size
1931+
is used to limit the length of the list labels
1932+
height
1933+
is used to set the <select> tag's "size" attribute
1934+
showid
1935+
includes the item ids in the list labels
1936+
additional
1937+
lists properties which should be included in the label
1938+
sort_on
1939+
indicates the property to sort the list on as (direction,
1940+
property) where direction is '+' or '-'.
1941+
1942+
The remaining keyword arguments are used as conditions for
1943+
filtering the items in the list - they're passed as the
1944+
"filterspec" argument to a Class.filter() call.
19291945
sorted only on Multilink properties - produce a list of the linked
19301946
items sorted by some property, for example::
19311947

@@ -2638,7 +2654,7 @@ the due date, or causing automatic actions to fire if the due date passes.
26382654
(in the heading row)
26392655
<th tal:condition="request/show/due_date">Due Date</th>
26402656
(in the data row)
2641-
<td tal:condition="request/show/priority" tal:content="i/due_date" />
2657+
<td tal:condition="request/show/due_date" tal:content="i/due_date" />
26422658

26432659
4. add the property to the issue.search.html page::
26442660

roundup/cgi/templating.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,6 +1585,18 @@ def menu(self, size=None, height=None, showid=0, additional=[],
15851585
sort_on=None, **conditions):
15861586
''' Render a form select list for this property
15871587
1588+
"size" is used to limit the length of the list labels
1589+
"height" is used to set the <select> tag's "size" attribute
1590+
"showid" includes the item ids in the list labels
1591+
"additional" lists properties which should be included in the
1592+
label
1593+
"sort_on" indicates the property to sort the list on as
1594+
(direction, property) where direction is '+' or '-'.
1595+
1596+
The remaining keyword arguments are used as conditions for
1597+
filtering the items in the list - they're passed as the
1598+
"filterspec" argument to a Class.filter() call.
1599+
15881600
If not editable, just display the value via plain().
15891601
'''
15901602
if not self.is_edit_ok():
@@ -1735,6 +1747,18 @@ def menu(self, size=None, height=None, showid=0, additional=[],
17351747
sort_on=None, **conditions):
17361748
''' Render a form select list for this property
17371749
1750+
"size" is used to limit the length of the list labels
1751+
"height" is used to set the <select> tag's "size" attribute
1752+
"showid" includes the item ids in the list labels
1753+
"additional" lists properties which should be included in the
1754+
label
1755+
"sort_on" indicates the property to sort the list on as
1756+
(direction, property) where direction is '+' or '-'.
1757+
1758+
The remaining keyword arguments are used as conditions for
1759+
filtering the items in the list - they're passed as the
1760+
"filterspec" argument to a Class.filter() call.
1761+
17381762
If not editable, just display the value via plain().
17391763
'''
17401764
if not self.is_edit_ok():

templates/classic/html/user.index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
<th tal:condition="context/is_edit_ok" i18n:translate="">Retire</th>
2020
</tr>
2121
<tal:block repeat="user context/list">
22-
<tr tal:condition="user/is_view_ok"
23-
tal:attributes="class python:['normal', 'alt'][repeat['user'].index%6/3]">
22+
<tr tal:attributes="class python:['normal', 'alt'][repeat['user'].index%6/3]">
2423
<td>
2524
<a tal:attributes="href string:user${user/id}"
2625
tal:content="user/username">username</a>

0 commit comments

Comments
 (0)