~ubuntu-branches/ubuntu/utopic/python-django-threadedcomments/utopic

« back to all changes in this revision

Viewing changes to django_threadedcomments.egg-info/PKG-INFO

  • Committer: Package Import Robot
  • Author(s): Bernhard Reiter, Bernhard Reiter, Jakub Wilk
  • Date: 2013-08-09 19:12:14 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130809191214-p8482p4e1ctekffq
Tags: 0.9.0-1
[ Bernhard Reiter ]
* New upstream release
* debian/compat: Bump to 9.
* debian/control, debian/copyright: Update upstream links. (Closes: #713930)
* debian/control: 
  - Remove python-textile, python-markdown, python-docutils from
    Build-Depends: and Suggests:
  - Bump debhelper Build-Depends to >= 9.
  - Bump Standards-Version to 3.9.4.
  - Add Suggests: python-django-south
* debian/copyright: s/BSD-new/BSD-3-clause/
* debian/docs, debian/doc-base: Update/remove to correspond with
  upstream sources.
* debian/patches/series, debian/patches/add_markup_deps_to_install,
  debian/patches/gravatar_default_url, debian/patches/django14:
  Remove patches, as obsolete.
* debian/rules: Add a SECRET_KEY for tests during building. (Closes: #711369)
* debian/NEWS.Debian: Add.

[ Jakub Wilk ]
* Use canonical URIs for Vcs-* fields.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
Metadata-Version: 1.0
2
2
Name: django-threadedcomments
3
 
Version: 0.5.3
 
3
Version: 0.9.0
4
4
Summary: A simple yet flexible threaded commenting system.
5
 
Home-page: http://code.google.com/p/django-threadedcomments/
6
 
Author: Eric Florenzano
7
 
Author-email: floguy@gmail.com
 
5
Home-page: https://github.com/HonzaKral/django-threadedcomments
 
6
Author: Diederik van der Boor
 
7
Author-email: vdboor@edoburu.nl
8
8
License: BSD
9
 
Description: UNKNOWN
10
 
Keywords: django,pinax,comments
 
9
Download-URL: https://github.com/HonzaKral/django-threadedcomments/zipball/master
 
10
Description: django-threadedcomments
 
11
        =======================
 
12
        
 
13
        *threadedcomments* is a Django application which allows for the simple creation of a threaded commenting system.
 
14
        Commenters can reply both to the original item, and reply to other comments as well.
 
15
        
 
16
        The application is (as of 0.9) built on top of django.contrib.comments,
 
17
        which allows it to be easily extended by other modules.
 
18
        
 
19
        
 
20
        Installation
 
21
        ============
 
22
        
 
23
        Install the package via pip::
 
24
        
 
25
            pip install django-threadedcomments
 
26
        
 
27
        It's preferred to install the module in a virtual environment.
 
28
        
 
29
        Configuration
 
30
        -------------
 
31
        
 
32
        Add the following to ``settings.py``::
 
33
        
 
34
            INSTALLED_APPS += (
 
35
                'threadedcomments',
 
36
                'django.contrib.comments',
 
37
            )
 
38
        
 
39
            COMMENTS_APP = 'threadedcomments'
 
40
        
 
41
        By placing the ``threadedcomments`` app above the ``django.contrib.comments`` application,
 
42
        the placeholder ``comments/list.html`` template will already be replaced by a threaded view.
 
43
        
 
44
        Make sure django.contrib.comments_ is configured in ``urls.py``::
 
45
        
 
46
            urlpatterns += patterns('',
 
47
                url(r'^articles/comments/', include('django.contrib.comments.urls')),
 
48
            )
 
49
        
 
50
        Provide a template that displays the comments for the ``object`` (e.g. article or blog entry)::
 
51
        
 
52
            {% load threadedcomments_tags %}
 
53
        
 
54
            ...
 
55
        
 
56
            <h2>Comments for {{ object.title }}:</h2>
 
57
        
 
58
            {% render_comment_list for object %}
 
59
            {% render_comment_form for object %}
 
60
        
 
61
        
 
62
        Template design
 
63
        ---------------
 
64
        
 
65
        Naturally, it's desirable to write your own version of ``comments/list.html`` in your project,
 
66
        or use one of the ``comments/app/list.html`` or ``comments/app/model/list.html`` overrides.
 
67
        
 
68
        Make sure to override ``comments/base.html`` as well, so the other views of django.contrib.comments_
 
69
        are displayed using your web site design. The other templates of django.contrib.comments_ are
 
70
        very plain as well on purpose (for example ``comments/posted.html``),
 
71
        since these pages depend on the custom design of the web site.
 
72
        
 
73
        See the provided ``example`` app for a basic configuration,
 
74
        including a JavaScript-based reply form that moves to the comment the visitor replies to.
 
75
        
 
76
        
 
77
        Template tags
 
78
        =============
 
79
        
 
80
        The ``threadedcomments_tags`` library is a drop-in replacement for the ``comments`` library
 
81
        that is required for the plain comments. The tags are forwards compatible;
 
82
        they support the same syntax as django.contrib.comments_ provides,
 
83
        and they add a few extra parameters.
 
84
        
 
85
        Fething comment counts::
 
86
        
 
87
            {% get_comment_count for [object] as [varname] %}
 
88
            {% get_comment_count for [object] as [varname] root_only %}
 
89
        
 
90
            {% get_comment_count for [app].[model] [id] as [varname] %}
 
91
            {% get_comment_count for [app].[model] [id] as [varname] root_only %}
 
92
        
 
93
        Fetching the comments list::
 
94
        
 
95
            {% get_comment_list for [object] as [varname] %}
 
96
            {% get_comment_list for [object] as [varname] flat %}
 
97
            {% get_comment_list for [object] as [varname] root_only %}
 
98
        
 
99
        Rendering the comments list::
 
100
        
 
101
            {% render_comment_list for [object] %}
 
102
            {% render_comment_list for [object] root_only %}
 
103
        
 
104
            {% render_comment_list for [app].[model] [id] %}
 
105
            {% render_comment_list for [app].[model] [id] root_only %}
 
106
        
 
107
        Fetching the comment form::
 
108
        
 
109
            {% get_comment_form for [object] as [varname] %}
 
110
            {% get_comment_form for [object] as [varname] with [parent_id] %}
 
111
            {% get_comment_form for [app].[model] [id] as [varname] %}
 
112
            {% get_comment_form for [app].[model] [id] as [varname] with [parent_id] %}
 
113
        
 
114
        Rendering the comment form::
 
115
        
 
116
            {% render_comment_form for [object] %}
 
117
            {% render_comment_form for [object] with [parent_id] %}
 
118
            {% render_comment_form for [app].[model] [id] %}
 
119
            {% render_comment_form for [app].[model] [id] with [parent_id] %}
 
120
        
 
121
        Rendering the whole tree::
 
122
        
 
123
            {% for comment in comment_list|fill_tree|annotate_tree %}
 
124
                {% ifchanged comment.parent_id %}{% else %}</li>{% endifchanged %}
 
125
                {% if not comment.open and not comment.close %}</li>{% endif %}
 
126
                {% if comment.open %}<ul>{% endif %}
 
127
        
 
128
                <li id="c{{ comment.id }}">
 
129
                    ...
 
130
                {% for close in comment.close %}</li></ul>{% endfor %}
 
131
            {% endfor %}
 
132
        
 
133
        The ``fill_tree`` filter is required for pagination, it ensures that the parents of the first comment are included as well.
 
134
        
 
135
        The ``annotate_tree`` filter adds the ``open`` and ``close`` properties to the comment.
 
136
        
 
137
        
 
138
        Extending the module
 
139
        ====================
 
140
        
 
141
        The application is built on top of the standard django.contrib.comments_ framework,
 
142
        which supports various signals, and template overrides to customize the comments.
 
143
        
 
144
        To customize django-threadedcomments, override the proper templates, or include the apps that provide the missing features.
 
145
        Front-end editing support for example, is left out on purpose. It belongs to the domain of moderation, and policies
 
146
        to know "who can do what". That deserves to be in a separate application, it shouldn't be in this application as it focuses on threading.
 
147
        The same applies to social media logins, comment subscriptions, spam protection and Ajax posting.
 
148
        
 
149
        Note that the standard framework also supports moderation, flagging, and RSS feeds too. More documentation can be found at:
 
150
        
 
151
        * `Django's comments framework <https://docs.djangoproject.com/en/dev/ref/contrib/comments/>`_
 
152
        * `Customizing the comments framework <http://docs.djangoproject.com/en/dev/ref/contrib/comments/custom/>`_
 
153
        * `Example of using the in-built comments app <http://docs.djangoproject.com/en/dev/ref/contrib/comments/example/>`_
 
154
        
 
155
        Some of the modules worth looking at are:
 
156
        
 
157
        * django-comments-spamfighter_
 
158
        * django-myrecaptcha_
 
159
        * django-fluent-comments_
 
160
        
 
161
        These modules can enhance the comments system even further.
 
162
        
 
163
        
 
164
        .. _django.contrib.comments: https://docs.djangoproject.com/en/dev/ref/contrib/comments/
 
165
        .. _django-fluent-comments: https://github.com/edoburu/django-fluent-comments/
 
166
        .. _django-myrecaptcha: https://bitbucket.org/pelletier/django-myrecaptcha/
 
167
        .. _django-comments-spamfighter: https://github.com/bartTC/django-comments-spamfighter/
 
168
        
 
169
Keywords: django,comments,threading
11
170
Platform: UNKNOWN
12
171
Classifier: Development Status :: 4 - Beta
13
172
Classifier: Environment :: Web Environment
 
173
Classifier: Framework :: Django
14
174
Classifier: Intended Audience :: Developers
15
175
Classifier: License :: OSI Approved :: BSD License
16
176
Classifier: Operating System :: OS Independent
17
177
Classifier: Programming Language :: Python
18
 
Classifier: Topic :: Utilities
 
178
Classifier: Programming Language :: Python :: 2.6
 
179
Classifier: Programming Language :: Python :: 2.7
 
180
Classifier: Topic :: Internet :: WWW/HTTP
 
181
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
 
182
Classifier: Topic :: Software Development :: Libraries :: Python Modules