Module comments
source code
|
|
CommentFormNode
|
|
|
CommentCountNode
|
|
|
CommentListNode
|
|
|
DoCommentForm
Displays a comment form for the given params.
|
|
|
DoCommentCount
Gets comment count for the given params and populates the template
context with a variable containing that value, whose name is
defined by the 'as' clause.
|
|
|
DoGetCommentList
Gets comments for the given params and populates the template
context with a special comment_package variable, whose name is
defined by the ``as`` clause.
|
|
|
register = template.Library()
|
|
|
COMMENT_FORM = 'comments/form.html'
|
|
|
FREE_COMMENT_FORM = 'comments/freeform.html'
|
Imports:
Comment,
FreeComment,
PHOTOS_REQUIRED,
PHOTOS_OPTIONAL,
RATINGS_REQUIRED,
RATINGS_OPTIONAL,
IS_PUBLIC,
MIN_PHOTO_DIMENSION,
MAX_PHOTO_DIMENSION,
template,
loader,
ObjectDoesNotExist,
ContentType,
smart_str,
re