
ckanext-useraffiliation
This CKAN extension add:
- job title; and
- affiliation
to the CKAN user schema displaying these fields in:
- registration form;
- user edit form; and
- user profile tile.
Requirements
This extension is tested with CKAN 2.9 for python3 only.
Installation
To install ckanext-useraffiliation:
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
Install the ckanext-useraffiliation Python package into your virtual environment::
pip install ckanext-useraffiliation
Add useraffiliation 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
Configuration
Ensure you have read and completed step 4 of the Installation section above. This step is essential CKAN configuration required for this plugin to work.
There are no configuration options for this plugin.
Running the Tests
To run the tests, do::
pytest --ckan-ini=test.ini
Releasing a New Version of ckanext-useraffiliation
ckanext-useraffiliation is availabe on PyPI as https://pypi.python.org/pypi/ckanext-useraffiliation.
To publish a new version to PyPI follow these steps:
Update the version number in the setup.py file.
See PEP 440 <http://legacy.python.org/dev/peps/pep-0440/#public-version-identifiers>_
for how to choose version numbers.
Create a source distribution of the new version::
python setup.py sdist bdist_wheel
Upload the source distribution to PyPI::
python -m twine upload dist/*
Tag the new release of the project on GitHub with t