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.

![Type selector](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.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: ckanext-create_typed_package-0.0.4.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.tar.gz
Algorithm Hash digest
SHA256 663b918114305836838fd9a2b1c9542c36da9a50fb02a5d34cdb9aeecfbfd95c
MD5 2ea97249a00798983db19e76b07bac7c
BLAKE2b-256 cc6669133af4f48efc43d3284a3cf767171951d0e58fb3de3800db29ea30901a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ckanext_create_typed_package-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 23.2 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-py3-none-any.whl
Algorithm Hash digest
SHA256 4078cbd74d8577203d1c552b63676a23c85b6c40ecb9e87ca568a8b4745c1f05
MD5 30d061af35ef0584f32db23a73084681
BLAKE2b-256 be06a2ca6c18fe2112d51da745468d8300f64c5259402bd15c521c5aa7f2066e

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