Requirements
Make sure to have email settings in your ckan.ini file.
Compatibility with core CKAN versions:
CKAN version Compatible?
2.9 Yes
2.10 Yes
2.11 Yes
For CKAN 2.9 use the 0.0.1 tag
Installation
To install ckanext-approvalworkflow:
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
Clone the source and install it on the virtualenv
git clone https://github.com//ckanext-approvalworkflow.git
cd ckanext-approvalworkflow
pip install -e .
pip install -r requirements.txt
Add approvalworkflow to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/ckan.ini).
Create the database tables running:
ckan -c /path/to/ini/file approval_workflow initdb
If you are using ckanext-datasetversions, make sure to add datasetversions plugin after approvalworkflow in your CKAN config file
Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu:
sudo service apache2 reload
Config settings
If your CKAN instance uses additional dataset types defined through ckanext-scheming, beyond the default dataset type, ensure that these custom types are explicitly listed in the configuration. For example:
ckanext.approvalworkflow.dataset_types = report, camel-photos, whitepaper
Developer installation
To install ckanext-approvalworkflow for development, activate your CKAN virtualenv and do:
git clone https://github.com//ckanext-approvalworkflow.git
cd ckanext-approvalworkflow
python setup.py develop
pip install -r dev-requirements.txt