Mercurial > p > roundup > code
diff doc/customizing.txt @ 3127:021b131bd816
doc fixes, one more fix to the permissions-in-listings fix
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 11 Feb 2005 22:18:20 +0000 |
| parents | a2889d22db4a |
| children | 7308c3c5a943 |
line wrap: on
line diff
--- a/doc/customizing.txt Fri Feb 04 05:25:50 2005 +0000 +++ b/doc/customizing.txt Fri Feb 11 22:18:20 2005 +0000 @@ -2,7 +2,7 @@ Customising Roundup =================== -:Version: $Revision: 1.170 $ +:Version: $Revision: 1.171 $ .. This document borrows from the ZopeBook section on ZPT. The original is at: http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx @@ -1927,7 +1927,24 @@ in the standard ``strftime`` call (see the `Python Library Reference: time module`__) menu only on Link and Multilink properties - render a form select - list for this property + list for this property. Takes a number of optional arguments + + size + is used to limit the length of the list labels + height + is used to set the <select> tag's "size" attribute + showid + includes the item ids in the list labels + additional + lists properties which should be included in the label + sort_on + indicates the property to sort the list on as (direction, + property) where direction is '+' or '-'. + + The remaining keyword arguments are used as conditions for + filtering the items in the list - they're passed as the + "filterspec" argument to a Class.filter() call. + sorted only on Multilink properties - produce a list of the linked items sorted by some property, for example:: @@ -2626,7 +2643,7 @@ issue = IssueClass(db, "issue", assignedto=Link("user"), topic=Multilink("keyword"), priority=Link("priority"), status=Link("status"), - due_dat=Date()) + due_date=Date()) 2. add an edit field to the issue.item.html template:: @@ -2640,7 +2657,7 @@ (in the heading row) <th tal:condition="request/show/due_date">Due Date</th> (in the data row) - <td tal:condition="request/show/priority" tal:content="i/due_date" /> + <td tal:condition="request/show/due_date" tal:content="i/due_date" /> 4. add the property to the issue.search.html page::
