Skip to main content

commenting system for the CubicWeb framework

Project description

Summary

The comment cube provides threadable comments feature.

It is a CubicWeb component. CubicWeb is a semantic web application framework, see http://www.cubicweb.org

Install

Auto-install from sources prefered with pip/Distribute:

pip install cubicweb-comment

If you have troubles, use easy_install/setuptools and eggs:

easy_install cubicweb-comment

You can install the package manually from the uncompressed tarball:

python setup.py install # auto-install dependencies

If you don’t want the dependancies to be installed automaticly, you can force the setup to use the standard library distutils:

NO_SETUPTOOLS=1 python setup.py install

More details at http://www.cubicweb.org/doc/en/admin/setup

Usage

This cube creates a new entity type called Comment which could basically be read by every body but only added by application’s users. It also defines a relation comments which provides the ability to add a Comment which comments a Comment.

To use this cube, you want to add the relation comments on the entity type you want to be able to comment. For instance, let’s say your cube defines a schema for a blog. You want all the blog entries to be commentable. Here is how to define it in your schema:

from yams.buildobjs import RelationDefinition
class comments(RelationDefinition):
    subject = 'Comment'
    object = 'BlogEntry'
    cardinality = '1*'

Once this relation is defined, you can post comments and view threadable comments automatically on blog entry’s primary view.

Documentation

Look in the doc/ subdirectory or read http://www.cubicweb.org/doc/en/

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

cubicweb-comment-3.0.0.tar.gz (62.9 kB view details)

Uploaded Source

Built Distribution

cubicweb_comment-3.0.0-py3-none-any.whl (60.8 kB view details)

Uploaded Python 3

File details

Details for the file cubicweb-comment-3.0.0.tar.gz.

File metadata

  • Download URL: cubicweb-comment-3.0.0.tar.gz
  • Upload date:
  • Size: 62.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for cubicweb-comment-3.0.0.tar.gz
Algorithm Hash digest
SHA256 2f6f8e90454ae5b7bddc4bd66afe582b840637e350794d61df0f0a42d7eec135
MD5 3cf5d0e178869b476a7ed1ac2e3e32cb
BLAKE2b-256 b7f88325ebeab2f2314ba181b5d6ecd5d373a0d20879763b99c5da0b8016ca1d

See more details on using hashes here.

File details

Details for the file cubicweb_comment-3.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cubicweb_comment-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78d575d3772375257b2ffa7dde4dbb3322584b2dd2cb018dd8151106f74e0b4c
MD5 252d55e75e7a839a489957900d1a8cfe
BLAKE2b-256 95c69d83ba59b6b65dbeb4a1f4e951946c395022691ada1b7aedce3a762e6e1e

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