Skip to main content

onesaitplatform customization portal

Project description

ckanext-onesaitplatform

Extension and theme for OnesaitPlatform Data Portal.

Requirements

This extension works with CKAN versions 2.8.X

It is necessary to install and activate these extensions: - ckanext-showcase - ckanext-oauth2

Installation

To install ckanext-onesaitplatform:

  1. Activate your CKAN virtual environment, for example:

    . /usr/lib/ckan/default/bin/activate

  2. Install the ckanext-onesaitplatform Python package into your virtual environment::

    pip install ckanext-onesaitplatform

  3. Add onesaitplatform to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/production.ini).

    NOTE: put onesaitplatform before any extension

  4. Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu:

    sudo service apache2 reload

Config Settings

Add these properties to the config file (by default the config file is located at /etc/ckan/default/production.ini):

  • To activate js effects:

    ckan.template_footer_end = <!-- CKAN onesaitplatform frontend controller -->
      <script type="text/javascript">
      $( window ).on( "load", function() { CKAN_Controller.init(); })
      </script>
      <!-- /CKAN onesaitplatform frontend controller -->
    
  • If ckan is running with a non root_path set this property to true, else set it to false:

    ckan.onesaitplatform.login = true
    

Development Installation

To install ckanext-onesait for development, activate your CKAN virtualenv and do:

git clone https://github.com/onesaitplatform/ckanext-onesaitplatform.git

cd ckanext-onesaitplatform

python setup.py develop

pip install -r dev-requirements.txt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ckanext-onesaitplatform-1.0.1.tar.gz (3.5 MB view details)

Uploaded Source

File details

Details for the file ckanext-onesaitplatform-1.0.1.tar.gz.

File metadata

  • Download URL: ckanext-onesaitplatform-1.0.1.tar.gz
  • Upload date:
  • Size: 3.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/2.7.18rc1

File hashes

Hashes for ckanext-onesaitplatform-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1a6c730b8c16b2c79907fb7b09026f4c54c77821d8c583eddc56af4f5c52f9b0
MD5 d795a6408952c9f66045a5870bb4f175
BLAKE2b-256 84d5e248b99bd3816a30b5309e0e68b081ef6621d21d4f75716dcc88ffddf951

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page