How to install cipher.background
- Download and install ActivePython
- Open Command Prompt
- Type
pypm install cipher.background
Lastest release
A library for creating background threads that can talk to the ZODB and use local site components.
We're probably reinventing Celery.
Example
Let's assume we have a DMS with a simple publication workflow. We have two states "DRAFT" and "PUBLISH". The Problem in this example is: that the transition form "DRAFT" to "PUBLISH" takes some minutes, and we don't want the user to be waiting.
First we have create a WorkflowTransition-BackgroundThread:
We have a simple Document with an initial Workflow-State draft.
Now we have to call our WorkflowTransition.
When calling worker.start() the thread goes into "Background" and the user don't have to wait until the Transition is finished.
CHANGES
2.0.0a1 (2013-03-06)
- Added support for Python 3.3.
- Dropped support for Python 2.4 and 2.5.
1.0.2 (2012-07-31)
- Refactor BackgroundWorkerThread to have the site returned from getSite()
1.0.1 (2012-04-05)
1.0.0 (2012-02-10)
- Initial release as a separate package.