Name: ckanext-configpermission
Owner: The Hyve
Description: A CKAN extension for managing permissions
Created: 2017-06-06 08:57:20.0
Updated: 2018-04-24 11:29:00.0
Pushed: 2017-12-04 15:20:40.0
Size: 172
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Adds a way for sysadmins to configure CKAN permissions via a web interface and create new organization roles.
Tested on CKAN 2.5
.. Add any additional install steps to the list below. For example installing any non-Python dependencies or adding any required config settings.
To install ckanext-configpermission:
Activate your CKAN virtual environment, for example::
. /usr/lib/ckan/default/bin/activate
Install the ckanext-configpermission Python package into your virtual environment::
pip install ckanext-configpermission
Add configpermission
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
Run database init
paster –plugin=ckanext-configpermission init -c /etc/ckan/default/production.ini
Create default data
paster –plugin=ckanext-configpermission defaultdata -c /etc/ckan/default/production.ini
Configure Permission settings on the sysadmin page.
Select the permissions to be managed in the ckan configuration file. Like so
ckan.configpermission.permissions = package_show member_delete group_create resource_update package_show resource_show
To install ckanext-configpermission for development, activate your CKAN virtualenv and do::
git clone https://github.com/thehyve/ckanext-configpermission.git
cd ckanext-configpermission
python setup.py develop
pip install -r dev-requirements.txt
To run the tests, do::
nosetests --paster=ckanext-configpermission --nologcapture --with-pylons=test.ini -c /etc/ckan/default/production.ini