Applies City of Cape Town metadata standard. Canonical record stored here
Uses custom scheming extension to actually implement the schema.
ckan==2.8.3
ckanext_scheming==1.2.0
To install ckanext-cct_metadata:
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
Install the ckanext-cct_metadata Python package into your virtual environment:
pip install ckanext-cct_metadata
Add
cct_metadata
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
Document any optional config settings here. For example:
# The minimum number of hours to wait before re-checking a resource # (optional, default: 24). ckanext.cct_metadata.some_setting = some_default_value
To install ckanext-cct_metadata for development, activate your CKAN virtualenv and do:
git clone https://github.com/cityofcapetown/ckanext-cct_metadata.git cd ckanext-cct_metadata python setup.py develop pip install -r dev-requirements.txt
NB I've swapped out nose tests for the built-in unit test framework.
To run the tests, do:
PYTHONPATH=. python -m unittest tests/test_plugin.py