Merge branch 'develop' of github.com:conwetlab/ckanext-privatedatasets into develop
This commit is contained in:
commit
eefd57806d
|
@ -11,7 +11,10 @@ Install this extension in your CKAN is instance is as easy as intall any other C
|
|||
* Activate your virtual environment (generally by running `. /usr/lib/ckan/default/bin/activate`)
|
||||
* Install the extension by running `python setup.py develop`
|
||||
* Modify your configuration file (generally in `/etc/ckan/default/production.ini`) and add `privatedatasets` in the `ckan.plugins` setting.
|
||||
* In the same config file, specify the location of your parser by adding the `ckan.privatedatasets.parser` setting. For example, to set the [FiWareNotificationParser](https://github.com/conwetlab/ckanext-privatedatasets/blob/master/ckanext/privatedatasets/parsers/fiware.py) as notification parser, add the following line: `ckan.privatedatasets.parser = ckanext.privatedatasets.parsers.fiware:FiWareNotificationParser`
|
||||
* In the same config file, specify the location of your parser by adding the `ckan.privatedatasets.parser` setting. For example, to set the [FiWareNotificationParser](https://github.com/conwetlab/ckanext-privatedatasets/blob/master/ckanext/privatedatasets/parsers/fiware.py) as notification parser, add the following line: `ckan.privatedatasets.parser = ckanext.privatedatasets.parsers.fiware:FiWareNotificationParser`.
|
||||
* If you want you can also add some preferences to set if the Acquire URL should be shown when the user is creating and/or editing a dataset:
|
||||
* To show the Acquire URL when the user is **creating** a dataset, you should set the following preference: `ckan.privatedatasets.show_acquire_url_on_create = True`. By default, the value of this preference is set to `False`.
|
||||
* To show the Acquire URL when the user is **editing** a dataset, you should set the following preference: `ckan.privatedatasets.show_acquire_url_on_edit = True`. By default, the value of this preference is set to `False`.
|
||||
* Restart your apache2 reserver (`sudo service apache2 restart`)
|
||||
* That's All!
|
||||
|
||||
|
|
Loading…
Reference in New Issue