CKAN Moderation module for datasets
ckanext-moderation consist of:
- Custom API endpoint for CRUD operation over datasets and resources
- Overwrite default actions and introduce custom moderation features
Supports Python 2.7, tested with CKAN 2.8.4
To install ckanext-moderation:
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
Clone repository and install the ckanext-moderation requirements first by:
pip install -r requirements.txt
Install extension into your virtual environment:
python setup.py install
Add
moderation
to theckan.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
To install ckanext-moderation for development, activate your CKAN virtualenv and do:
git clone https://github.com/justicehub-in/ckanext-moderation.git cd ckanext-moderation python setup.py develop
Right now major modifications have been made for justicehub.in website and it's hard to generalize it for normal usage. Few challenges are:
- Creating moderation logic and overwriting with existing one
- Overwrite and create both actions and API which can be used as an API + by default CKAN