Skip to main content

Tests

ckanext-comments

Add comment-trees to CKAN pages

Requirements

  • python >= 3.7
  • CKAN >= 2.9

Installation

To install ckanext-comments:

  1. Activate your CKAN virtual environment, for example:

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

  2. Clone the source and install it on the virtualenv

    git clone https://github.com/DataShades/ckanext-comments.git cd ckanext-comments pip install -e . pip install -r requirements.txt

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

  4. Apply database migrations

    ckan db upgrade -p comments

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

    sudo service apache2 reload

Config settings

# Require comment approval in order to make it visible
# (optional, default: true).
ckanext.comments.require_approval = false

Developer installation

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

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

Tests

To run the tests, do:

pytest --ckan-ini=test.ini

License

AGPL

Download files

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

Source Distribution

ckanext-comments-0.0.3.tar.gz (30.2 kB view details)

Uploaded Source

Built Distribution

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

ckanext_comments-0.0.3-py3-none-any.whl (36.8 kB view details)

Uploaded Python 3

File details

Details for the file ckanext-comments-0.0.3.tar.gz.

File metadata

  • Download URL: ckanext-comments-0.0.3.tar.gz
  • Upload date:
  • Size: 30.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for ckanext-comments-0.0.3.tar.gz
Algorithm Hash digest
SHA256 be60a417e8b713c8152e4417abf4b01a891e3a48d79ae369536116aa9db6b029
MD5 9df97a5717ac74ad7a7eff5126c3f0db
BLAKE2b-256 50303707b8c959eb617bc5412296a10485f5ca0d8e49a6ef117bc5b4b87f58e1

See more details on using hashes here.

File details

Details for the file ckanext_comments-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: ckanext_comments-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 36.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

File hashes

Hashes for ckanext_comments-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3b4575e28007317fb417e9990b7c97500b5551bb77885ba4b686ed912c3d1493
MD5 6025b82db4fe8f6b0b23465f6b709e41
BLAKE2b-256 c47b0403623e4c3ef855b75e359052fa668d49c1b23ccb9538e97d9dde25793a

See more details on using hashes here.

Release history Release notifications | RSS feed

0.3.1.post1

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.22

2 files

0.0.21

2 files

0.0.20

2 files

0.0.19

2 files

0.0.18

2 files

0.0.17

2 files

0.0.16

2 files

0.0.15

2 files

0.0.14

2 files

0.0.13

2 files

0.0.12

2 files

0.0.11

2 files

0.0.10

2 files

0.0.9

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

This release

0.0.3 This release

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page