Plugin to disable user registration on a CKAN instance | Read-only mirror of https://github.com/ogdch/ckanext-noregistration — Bundesamt für Statistik. Issues & pull requests at the source.
  • Python 55.4%
  • HTML 22.5%
  • Shell 22.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2014-02-20 18:15:45 +01:00
ckanext Add PEP8 code style check 2013-12-20 00:05:38 +01:00
.gitignore simple plugin to disable user registration 2013-08-26 15:39:59 +02:00
.travis.yml Add flake8 as a dependency 2014-02-20 18:15:45 +01:00
build.sh Add travis build 2014-02-20 18:07:47 +01:00
LICENSE Add LICENSE and README 2013-09-13 19:41:02 +02:00
pip-requirements.txt Add flake8 as a dependency 2014-02-20 18:15:45 +01:00
pre-commit.sh Add PEP8 code style check 2013-12-20 00:05:38 +01:00
README.md Add PEP8 code style check 2013-12-20 00:05:38 +01:00
setup.cfg Add PEP8 code style check 2013-12-20 00:05:38 +01:00
setup.py simple plugin to disable user registration 2013-08-26 15:39:59 +02:00

ckanext-noregistration

Plugin to disable user registration on a CKAN instance (based on this answer on StackOverflow)

Installation

Use pip to install this plugin. This example installs it in /home/www-data

source /home/www-data/pyenv/bin/activate
pip install -e git+https://github.com/ogdch/ckanext-noregistration.git#egg=ckanext-noregistration --src /home/www-data
cd /home/www-data/ckanext-noregistration
python setup.py develop

Make sure to add noregistration to ckan.plugins in your config file.

For development

  • install the pre-commit.sh script as a pre-commit hook in your local repositories: ** ln -s ../../pre-commit.sh .git/hooks/pre-commit