Ticket #37 (new discussion)
Provide a __cmp__ method for Entity.
| Reported by: | pobrien | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Schevo 3.1 |
| Component: | Schevo | Keywords: | |
| Cc: |
Description (last modified by pobrien) (diff)
The idea here is to provide smart sorting of entities out-of-the-box for use by applications like GUI navigators. This __cmp__ method should compare the (primary-key-values, entity-name) of the Entity instance. Where the primary key includes an entity field it may need to recurse into that entity for additional values (unless Python does that by default already). Including the entity-name is important for sorting heterogenous collections.
Change History
Note: See
TracTickets for help on using
tickets.
