Skip to content

Commit 0009da8

Browse files
author
Richard Jones
committed
doc fixes
1 parent 30d7aa3 commit 0009da8

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed

doc/customizing.txt

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,7 +1819,23 @@ pretty Date properties - render the date as "dd Mon YYYY" (eg. "19
18191819
in the standard ``strftime`` call (see the `Python Library
18201820
Reference: time module`__)
18211821
menu only on Link and Multilink properties - render a form select
1822-
list for this property
1822+
list for this property. Takes a number of optional arguments
1823+
1824+
size
1825+
is used to limit the length of the list labels
1826+
height
1827+
is used to set the <select> tag's "size" attribute
1828+
showid
1829+
includes the item ids in the list labels
1830+
additional
1831+
lists properties which should be included in the label
1832+
sort_on
1833+
indicates the property to sort the list on as (direction,
1834+
property) where direction is '+' or '-'.
1835+
1836+
The remaining keyword arguments are used as conditions for
1837+
filtering the items in the list - they're passed as the
1838+
"filterspec" argument to a Class.filter() call.
18231839
reverse only on Multilink properties - produce a list of the linked
18241840
items in reverse order
18251841
isset returns True if the property has been set to a value
@@ -2479,7 +2495,7 @@ the due date, or causing automatic actions to fire if the due date passes.
24792495
(in the heading row)
24802496
<th tal:condition="request/show/due_date">Due Date</th>
24812497
(in the data row)
2482-
<td tal:condition="request/show/priority" tal:content="i/due_date" />
2498+
<td tal:condition="request/show/due_date" tal:content="i/due_date" />
24832499

24842500
4. add the property to the issue.search.html page::
24852501

roundup/cgi/templating.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,6 +1503,18 @@ def menu(self, size=None, height=None, showid=0, additional=[],
15031503
sort_on=None, **conditions):
15041504
''' Render a form select list for this property
15051505
1506+
"size" is used to limit the length of the list labels
1507+
"height" is used to set the <select> tag's "size" attribute
1508+
"showid" includes the item ids in the list labels
1509+
"additional" lists properties which should be included in the
1510+
label
1511+
"sort_on" indicates the property to sort the list on as
1512+
(direction, property) where direction is '+' or '-'.
1513+
1514+
The remaining keyword arguments are used as conditions for
1515+
filtering the items in the list - they're passed as the
1516+
"filterspec" argument to a Class.filter() call.
1517+
15061518
If not editable, just display the value via plain().
15071519
'''
15081520
self.view_check()
@@ -1657,6 +1669,18 @@ def menu(self, size=None, height=None, showid=0, additional=[],
16571669
sort_on=None, **conditions):
16581670
''' Render a form select list for this property
16591671
1672+
"size" is used to limit the length of the list labels
1673+
"height" is used to set the <select> tag's "size" attribute
1674+
"showid" includes the item ids in the list labels
1675+
"additional" lists properties which should be included in the
1676+
label
1677+
"sort_on" indicates the property to sort the list on as
1678+
(direction, property) where direction is '+' or '-'.
1679+
1680+
The remaining keyword arguments are used as conditions for
1681+
filtering the items in the list - they're passed as the
1682+
"filterspec" argument to a Class.filter() call.
1683+
16601684
If not editable, just display the value via plain().
16611685
'''
16621686
self.view_check()

0 commit comments

Comments
 (0)