=============
ckanext-reminder
This extension has two main functions.
The extension provides simple email notifications for datasets which have a set data-expiry date. The extension relies on a
daily cronjob during which datasets are checked if the reminder-data is set to current date. The email sending process is not
retried in any way and the emails will not be sent if the cronjob fails to run for some reason.
The extension provides a subscription form snippet which can be added to dataset templates. Users can submit their
email address and receive notifications of these specific datasets when they are updated. The user can unsubscribe
from any datasets by clicking the link located at the bottom of the email.
Requirements
This extension is developed and tested with CKAN version 2.5.2 but versions starting from 2.2 should work fine.
This extension also needs Bootstrap 3+ for styling to work properly. Bootstrap 2 should mainly be fine, but styles might be a
bit off at least with the subscription_form template.
Installation
To install ckanext-reminder:
Activate your CKAN virtual environment, for example::
. /usr/lib/ckan/default/bin/activate
Install the ckanext-reminder Python package into your virtual environment::
pip install ckanext-reminder
Add reminder to the ckan.plugins setting in your CKAN
config file (by default the config file is located at
/etc/ckan/default/production.ini).
Restart CKAN. For example if you’ve deployed CKAN with Apache on Ubuntu::
sudo service apache2 reload
Configure fields in the CKAN config file, the required configurations are listed below in the section “Config Settings”.
Initialize database tables used by the subscribe to email notifications functionality::
paster –plugin=ckanext-reminder reminder init –config=YOUR_CONFIGURATION.ini
Call the appropriate paster commands in e.g. a cronjo