Skip to main content

An adapter to make containers and their contents orderable

Project description

largeblue.order allows you to adapt ''selected'' containers and objects
to make the container's contents orderable. It build on and patches
bebop.ordering, the source code and dependencies of which are included
here (because it's not available as a standalone egg on the pypi or
via iwm-kmrc.de).

(Note that the bebop code is all (c) iwm-kmrc.de and is released under
GPL).

The original bebop implementation makes all containers ordering and
all content objects orderable. This package re-configures the
underlying ordering machinery, so you can adapt specific containers
and specific objects to make the ordering and orderable.

This way you can choose, say, which objects that are contained within
a container should be orderable. Plus you can choose which containers
to hang this functionality off explicitly. I should note also that the
view that this package hangs off the container also includes the
default container view functionality of add, delete, rename, etc.

To use it, include largeblue.order in your project dependencies, adapt
container(s) to say they implement
largeblue.order.interfaces.IMarkedAsOrdering and adapt the objects you
want to order to say they implement
largeblue.order.interfaces.IMarkedAsOrderable.

Then go to http://...path/to/my_container/@@orderable_contents.html

For an example usage, see `largeblue.pages <http://pypi.python.org/pypi/largeblue.pages>`_ (`configuring the container and object is done here <http://pesto.largeblue.net/trac/browser/largeblue/devel/largeblue.pages/trunk/src/largeblue/pages/configure.zcml`_).

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

largeblue.order-0.1.tar.gz (176.7 kB view details)

Uploaded Source

File details

Details for the file largeblue.order-0.1.tar.gz.

File metadata

File hashes

Hashes for largeblue.order-0.1.tar.gz
Algorithm Hash digest
SHA256 93ea3f9d426219cbdb78d02d0c221a3e4c885aa5e874c68067dab2108b005d53
MD5 489022c0e1849f5d00e3a3b61a007152
BLAKE2b-256 f693a3b5b638ad73b709bc547c3cd38039f39b3e1a3718c80a6a71120769b0e6

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