Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 3128:f0051e4bc8b7 maint-0.8
doc fixes, one more fix to the permissions-in-listings fix
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 11 Feb 2005 22:27:59 +0000 |
| parents | ac1803a09920 |
| children | 62b1a54107e6 |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Fri Jan 28 05:11:29 2005 +0000 +++ b/roundup/cgi/templating.py Fri Feb 11 22:27:59 2005 +0000 @@ -1585,6 +1585,18 @@ sort_on=None, **conditions): ''' Render a form select list for this property + "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. + If not editable, just display the value via plain(). ''' if not self.is_edit_ok(): @@ -1735,6 +1747,18 @@ sort_on=None, **conditions): ''' Render a form select list for this property + "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. + If not editable, just display the value via plain(). ''' if not self.is_edit_ok():
