Skip to main content

CKAN extension to restrict fupload when uploading resources file

Project description

.. You should enable this project on travis-ci.org and coveralls.io to make
these badges work. The necessary Travis and Coverage config files have been
generated for you.

.. image:: https://travis-ci.org/ericsnth/ckanext-openformat.svg?branch=master
:target: https://travis-ci.org/ericsnth/ckanext-openformat

.. image:: https://coveralls.io/repos/ericsnth/ckanext-openformat/badge.svg
:target: https://coveralls.io/r/ericsnth/ckanext-openformat

.. image:: https://pypip.in/download/ckanext-openformat/badge.svg
:target: https://pypi.python.org/pypi//ckanext-openformat/
:alt: Downloads

.. image:: https://pypip.in/version/ckanext-openformat/badge.svg
:target: https://pypi.python.org/pypi/ckanext-openformat/
:alt: Latest Version

.. image:: https://pypip.in/py_versions/ckanext-openformat/badge.svg
:target: https://pypi.python.org/pypi/ckanext-openformat/
:alt: Supported Python versions

.. image:: https://pypip.in/status/ckanext-openformat/badge.svg
:target: https://pypi.python.org/pypi/ckanext-openformat/
:alt: Development Status

.. image:: https://pypip.in/license/ckanext-openformat/badge.svg
:target: https://pypi.python.org/pypi/ckanext-openformat/
:alt: License

=============
ckanext-openformat
=============

------------
Installation
------------

.. Add any additional install steps to the list below.
For example installing any non-Python dependencies or adding any required
config settings.

To install ckanext-openformat:

1. Activate your CKAN virtual environment, for example::

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

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

pip install ckanext-openformat

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

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

sudo service apache2 reload


---------------
Config Settings
---------------
Configure /etc/ckan/default/production.ini with this configuration:

# List of allowed file extension in resources
# (optional, default: csv xls xlsx doc docx pdf xml json)
ericsnth.ckan.file_extension_allowed = csv xls xlsx doc docx pdf xml json


------------------------
Development Installation
------------------------

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

git clone https://github.com/ericsnth/ckanext-openformat.git
cd ckanext-openformat
python setup.py develop
pip install -r dev-requirements.txt


-----------------
Author
-----------------

Ericson Thomas | https://www.linkedin.com/in/ericsnth

Backend Programmer Satu Data Indonesia, Kantor Staf Presiden RI

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-openformat-0.0.1.tar.gz (18.4 kB view details)

Uploaded Source

File details

Details for the file ckanext-openformat-0.0.1.tar.gz.

File metadata

  • Download URL: ckanext-openformat-0.0.1.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for ckanext-openformat-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2432f464da1817d6255e6df28609762be3978ca3a58423d6e5ef0a1c70191aeb
MD5 521ff03b33cb5aa4c329cb54fe2b4286
BLAKE2b-256 e9144d83d80e2bb209648fabb6f17d65590db6a72164c0b392b2e0e917b8860a

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