Mercurial > p > roundup > code
comparison doc/customizing.txt @ 2858:0357a9c93933
fix filter() doc
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 03 Nov 2004 03:07:04 +0000 |
| parents | 874bf6abad42 |
| children | 1ca5ebe9b16a |
comparison
equal
deleted
inserted
replaced
| 2856:adec352e2ce0 | 2858:0357a9c93933 |
|---|---|
| 1 =================== | 1 =================== |
| 2 Customising Roundup | 2 Customising Roundup |
| 3 =================== | 3 =================== |
| 4 | 4 |
| 5 :Version: $Revision: 1.148 $ | 5 :Version: $Revision: 1.149 $ |
| 6 | 6 |
| 7 .. This document borrows from the ZopeBook section on ZPT. The original is at: | 7 .. This document borrows from the ZopeBook section on ZPT. The original is at: |
| 8 http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx | 8 http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx |
| 9 | 9 |
| 10 .. contents:: | 10 .. contents:: |
| 1677 properties return a `hyperdb property wrapper`_ for all of this class's | 1677 properties return a `hyperdb property wrapper`_ for all of this class's |
| 1678 properties. | 1678 properties. |
| 1679 list lists all of the active (not retired) items in the class. | 1679 list lists all of the active (not retired) items in the class. |
| 1680 csv return the items of this class as a chunk of CSV text. | 1680 csv return the items of this class as a chunk of CSV text. |
| 1681 propnames lists the names of the properties of this class. | 1681 propnames lists the names of the properties of this class. |
| 1682 filter lists of items from this class, filtered and sorted by the | 1682 filter lists of items from this class, filtered and sorted. Two |
| 1683 current *request* filterspec/filter/sort/group args | 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 classhelp display a link to a javascript popup containing this class' | 1694 classhelp display a link to a javascript popup containing this class' |
| 1685 "help" template. | 1695 "help" template. |
| 1686 submit generate a submit button (and action hidden element) | 1696 submit generate a submit button (and action hidden element) |
| 1687 renderWith render this class with the given template. | 1697 renderWith render this class with the given template. |
| 1688 history returns 'New node - no history' :) | 1698 history returns 'New node - no history' :) |
