Merge lp:~benoit.pierre/sloecode/sorted-lists into lp:sloecode
Proposed by
Benoit Pierre
Status: | Merged |
---|---|
Merged at revision: | 133 |
Proposed branch: | lp:~benoit.pierre/sloecode/sorted-lists |
Merge into: | lp:sloecode |
Diff against target: |
158 lines (+33/-10) 9 files modified
sloecode/config/environment.py (+6/-2) sloecode/lib/filters.py (+19/-0) sloecode/templates/admin/person-list.html (+1/-1) sloecode/templates/admin/project-list.html (+1/-1) sloecode/templates/macros/nav.html (+1/-1) sloecode/templates/person-details.html (+1/-1) sloecode/templates/person-manage-keys.html (+1/-1) sloecode/templates/project-details.html (+2/-2) sloecode/templates/project-manage-users.html (+1/-1) |
To merge this branch: | bzr merge lp:~benoit.pierre/sloecode/sorted-lists |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Thomi Richards (community) | Approve | ||
Review via email:
|
Description of the change
- add support for custom Jinja2 filters
- add 2 sort filters
- use them to sort web UI lists when applicable
To post a comment you must log in.
N.B.:
- sorting by method return value uses operator. methodcaller, which is only available starting with Python 2.6 attrgetter) , is only available starting with Python 2.6 too
- sorting using a dotted attribute (using operator.
I know Bazaar still support Python 2.4, I don't know about other components. The filters implementation will have to be changed if Python 2.4 is too be supported for sloecode.