Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collective.flexibleordering-1.0beta2.zip (19.9 kB view details)

Uploaded Source

File details

Details for the file collective.flexibleordering-1.0beta2.zip.

File metadata

File hashes

Hashes for collective.flexibleordering-1.0beta2.zip
Algorithm Hash digest
SHA256 1a24372b13ddd3be496ea437caba4c6e674f6c611ff61b4a2908de1126f493ff
MD5 e193a490a82bcd009ba3d30a3454c5a7
BLAKE2b-256 471e623add819678b24182c04cb02dd60cb1367a14325fe6a77a89006b6c8316

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page