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.9.tar.gz (35.6 kB view details)

Uploaded Source

Built Distribution

ckanext_comments-0.0.9-py3-none-any.whl (43.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ckanext-comments-0.0.9.tar.gz
  • Upload date:
  • Size: 35.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.3

File hashes

Hashes for ckanext-comments-0.0.9.tar.gz
Algorithm Hash digest
SHA256 0983d7606708c919260bf6d89f8f8eaa67ccc48f5ddf089bfff6ac233e7b4c3c
MD5 4572f2e19186ab2a6f7a5e700f72c7f8
BLAKE2b-256 2db74ae5a343acdce5392a901edf9961beccda5b752ae14eef26f5c320bef7bb

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ckanext_comments-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 43.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.3

File hashes

Hashes for ckanext_comments-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 acb2cd034925fe7ac392625fbfa5dcdee299b65e7e6e460c56d9c318de91d117
MD5 1bf016dc901602847beb8b2cf42d0348
BLAKE2b-256 0f6d98f13b2999bbcab50523341ecbd14f5043efa099b004ce6e5a4ba06abd54

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