Mercurial > p > roundup > code
comparison doc/customizing.txt @ 5903:c3728772c594
Add reverse option to hyperdb property wrapper by David Sowder
issue2551013: Reversed sorting in hyperdb property wrapper object's
sorted() method. Patch by David Sowder, application and doc change
by John Rouillard.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 07 Oct 2019 16:30:47 -0400 |
| parents | d0aebd4aec72 |
| children | 45c691a81f75 |
comparison
equal
deleted
inserted
replaced
| 5902:4f74b97dddcd | 5903:c3728772c594 |
|---|---|
| 2699 sorted only on Multilink properties - produce a list of the linked | 2699 sorted only on Multilink properties - produce a list of the linked |
| 2700 items sorted by some property, for example:: | 2700 items sorted by some property, for example:: |
| 2701 | 2701 |
| 2702 python:context.files.sorted('creation') | 2702 python:context.files.sorted('creation') |
| 2703 | 2703 |
| 2704 Will list the files by upload date. | 2704 Will list the files by upload date. While |
| 2705 | |
| 2706 python:context.files.sorted('creation', reverse=True) | |
| 2707 | |
| 2708 Will list the files by upload date in reverse order from | |
| 2709 the prior example. | |
| 2705 reverse only on Multilink properties - produce a list of the linked | 2710 reverse only on Multilink properties - produce a list of the linked |
| 2706 items in reverse order | 2711 items in reverse order |
| 2707 isset returns True if the property has been set to a value | 2712 isset returns True if the property has been set to a value |
| 2708 =========== ================================================================ | 2713 =========== ================================================================ |
| 2709 | 2714 |
