|
2 | 2 | Customising Roundup |
3 | 3 | =================== |
4 | 4 |
|
5 | | -:Version: $Revision: 1.148 $ |
| 5 | +:Version: $Revision: 1.149 $ |
6 | 6 |
|
7 | 7 | .. This document borrows from the ZopeBook section on ZPT. The original is at: |
8 | 8 | http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx |
@@ -1679,8 +1679,18 @@ properties return a `hyperdb property wrapper`_ for all of this class's |
1679 | 1679 | list lists all of the active (not retired) items in the class. |
1680 | 1680 | csv return the items of this class as a chunk of CSV text. |
1681 | 1681 | propnames lists the names of the properties of this class. |
1682 | | -filter lists of items from this class, filtered and sorted by the |
1683 | | - current *request* filterspec/filter/sort/group args |
| 1682 | +filter lists of items from this class, filtered and sorted. Two |
| 1683 | + options are avaible for sorting: |
| 1684 | + |
| 1685 | + 1. by the current *request* filterspec/filter/sort/group args |
| 1686 | + 2. by the "filterspec", "sort" and "group" keyword args. |
| 1687 | + "filterspec" is ``{propname: value(s)}``. "sort" and |
| 1688 | + "group" are ``(dir, prop)`` where dir is '+', '-' or None |
| 1689 | + and prop is a prop name or None. |
| 1690 | + |
| 1691 | + eg. ``issue.filter(filterspec={"priority": "1"}, |
| 1692 | + sort=('activity', '+'))`` |
| 1693 | + |
1684 | 1694 | classhelp display a link to a javascript popup containing this class' |
1685 | 1695 | "help" template. |
1686 | 1696 | submit generate a submit button (and action hidden element) |
|
0 commit comments