Skip to main content

Select dataset type when adding new data

Project description

https://travis-ci.org/DataShades/ckanext-create_typed_package.svg?branch=master https://codecov.io/gh/DataShades/ckanext-create_typed_package/branch/master/graph/badge.svg

ckanext-create_typed_package

Add dataset type selector to the “Add dataset” button.

https://github.com/DataShades/ckanext-create_typed_package/raw/master/selector.png

Installation

To install ckanext-create_typed_package:

  1. Activate your CKAN virtual environment, for example:

    . /usr/lib/ckan/default/bin/activate
  2. Install the ckanext-create_typed_package Python package into your virtual environment:

    pip install ckanext-create-typed-package
  3. Add create_typed_package to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/ckan.ini).

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

    sudo service apache2 reload

Config settings

# Build list of package types using ckanext-scheming API instead of
# internal CKAN's package_type registry
# (optional, default: false).
create_typed_package.use_scheming = true

# Additional types that are not are not automatically added to the
# list for some reason
# (optional, default: []).
create_typed_package.additional_types = custom_type another_type

# Package types that need to be excluded from the list of available
# types
# (optional, default: []).
create_typed_package.exclude_types = custom_type another_type

# After clicking on "Add datset" button redirect user to special
# page with dataset type selector instead of using in-place modal
# (optional, default: false).
create_typed_package.use_separate_route = true

# URL where the special page with dataset type selector will be registered.
# (optional, default: /dataset/select-type).
create_typed_package.route_path = /create-package/select-type

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-create_typed_package-0.0.4.post1.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file ckanext-create_typed_package-0.0.4.post1.tar.gz.

File metadata

  • Download URL: ckanext-create_typed_package-0.0.4.post1.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.3

File hashes

Hashes for ckanext-create_typed_package-0.0.4.post1.tar.gz
Algorithm Hash digest
SHA256 1d0ccad29cff76b15956d9657e0aea006f77822aaba4cc71e2622f500dcff0c5
MD5 3ebd9bd650f03e028a61b8470a24709e
BLAKE2b-256 fb3ff76ee5d59f0366078cd74136f3dbfba8193cb8cfda6887ec921c6cdf49f6

See more details on using hashes here.

File details

Details for the file ckanext_create_typed_package-0.0.4.post1-py3-none-any.whl.

File metadata

  • Download URL: ckanext_create_typed_package-0.0.4.post1-py3-none-any.whl
  • Upload date:
  • Size: 23.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.3

File hashes

Hashes for ckanext_create_typed_package-0.0.4.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 f2be7936c4ffe97bb4c724fda2e54792f34968f318c17d2759a802ce519b5892
MD5 ae86128c315ead1f957971904cc628eb
BLAKE2b-256 4287836d6b1d85ad34b76e6a6c5deea9db5e88edcc9481062b8bfdaa60e48b0f

See more details on using hashes here.

Supported by

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