Skip to main content

No project description provided

Project description

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

# Editor(admin) can edit draft comments
# (optional, default: true).
ckanext.comments.draft_edits = true

# Editor(admin) can edit approved comments
# (optional, default: false).
ckanext.comments.approved_edits = false

# Author can edit own draft comments
# (optional, default: false).
ckanext.comments.draft_edits_by_author = false

# Author can edit own approved comments
# (optional, default: false).
ckanext.comments.approved_edits_by_author = false

# Number of reply levels that are shown on mobile layout
# (optional, default: 3).
ckanext.comments.mobile_depth_threshold = 3

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

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-comments-0.0.8.tar.gz (35.7 kB view details)

Uploaded Source

Built Distribution

ckanext_comments-0.0.8-py3-none-any.whl (47.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ckanext-comments-0.0.8.tar.gz
  • Upload date:
  • Size: 35.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for ckanext-comments-0.0.8.tar.gz
Algorithm Hash digest
SHA256 6a103ef2695ba344addacfa0c92c13117092c1bb07c9ee5f8bdea1c88339f1d0
MD5 23bd3e9ac06c99e2ece8b6f2d5083a09
BLAKE2b-256 9176c35855017f950ed830da695ee00a6971339cd5eef395b99fc423941d353d

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ckanext_comments-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 47.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for ckanext_comments-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 94f2587e0fad65c03b4a62a3d7f6089f861f0f4ef68bd09c5b311420ee1ea2cf
MD5 572e39df0e84cec1f515ab0ddbc6bd72
BLAKE2b-256 5cc8587c589509a6d6b3884ca405839c051ce9c1dd385fde5ec87bd87cb22acb

See more details on using hashes here.

Provenance

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