Skip to main content

Plone integration for the python 'schedule' library

Project description

collective.schedule
===================

This package integrates the python 'schedule' library (https://github.com/dbader/schedule) with Plone.

It provides the following:

* A ZML interface for scheduling jobs
* A single 'tick' job processing view that can be registered using a Zope Clock Server

Configuration
-------------

First add `collective.schedule` to your buildout eggs.
Then register the collective.schedule 'tick' method as a clock server in your buildout config:

[buildout]
...

[instance]
recipe = plone.recipe.zope2instance
...
zope-conf-additional =
<clock-server>
method /plonesite/@@schedule-tick
period 300
user username
password password
</clock-server>

Scheduling jobs
---------------

You can then register jobs using ZCML as follows:

<configure
xmlns:schedule="http://namespaces.zope.org/schedule">
<schedule:job
view="myview"
unit="day"
at="22:00"
/>
</configure>

Where 'myview' is a browser view that can be looked up on the Plone Site and executed with the user defined in the clock server above.

Contributors
============

- Matt Sital-Singh (mattss), Original Author

Changelog
=========

0.1.3 (2013-09-20)
-------------------
- Documentation updates

0.1.2 (2013-09-20)
-------------------
- Look up the context (plone site) correctly

0.1.1 (2013-09-20)
-------------------
- Correctly wrap the context in with a request (Fixes AttributeError 'REQUEST' in page templates)

0.1 (2013-06-14)
-------------------

- 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.schedule-0.1.3.zip (24.6 kB view hashes)

Uploaded Source

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