A custom folder ordering implementation, which stores order persistently, but sorts content based on a rule.
Project description
Introduction
============
This product provides a couple IOrdering adpaters to provide efficient
auto-sorting of folders with significant amounts of content.
It includes a title (``flexible-title-ordering``) and id
(``flexible-id-ordering``) ordering, but is intended to allow easy
creation of custom sorts.
It is easy to create custom ordering implementations by subclassing
one of the included implementations and simply overriding the
``key_func(obj)`` method which generates a sort key for contained
content. Essentially, any ordering can be achieved in this manner.
Note: The full data structure containing the folder order key -> id
mapping is stored on the folder itself. This means that folder
instances with a large amount of content may become somewhat large,
but that order lookups should be quite fast.
Credits
-------
Alec Mitchell
Jazkarta, Inc.
With thanks to:
Dumbarton Oaks
KCRW Radio
Changelog
=========
1.0beta1 (2014-03-08)
-------------------
- Initial release
============
This product provides a couple IOrdering adpaters to provide efficient
auto-sorting of folders with significant amounts of content.
It includes a title (``flexible-title-ordering``) and id
(``flexible-id-ordering``) ordering, but is intended to allow easy
creation of custom sorts.
It is easy to create custom ordering implementations by subclassing
one of the included implementations and simply overriding the
``key_func(obj)`` method which generates a sort key for contained
content. Essentially, any ordering can be achieved in this manner.
Note: The full data structure containing the folder order key -> id
mapping is stored on the folder itself. This means that folder
instances with a large amount of content may become somewhat large,
but that order lookups should be quite fast.
Credits
-------
Alec Mitchell
Jazkarta, Inc.
With thanks to:
Dumbarton Oaks
KCRW Radio
Changelog
=========
1.0beta1 (2014-03-08)
-------------------
- Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for collective.flexibleordering-1.0beta1.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | a18b277f9f8f6422a6b4fb9571fcfffb2af99d0f7f98df80ab40bb4a59f11128 |
|
MD5 | 1603fe21a9bc12dcd42ed1d7d0ed97fc |
|
BLAKE2b-256 | 0195a9cc07715bf0108835c1c5fa22ca27faeaa50b7c79e76f3836878ca23cfd |