fix docstring
This commit is contained in:
parent
084d2893e7
commit
64d50fbd00
@ -11,7 +11,6 @@
|
|||||||
<tal:main-macro metal:define-macro="main"
|
<tal:main-macro metal:define-macro="main"
|
||||||
tal:define="toLocalizedTime nocall:context/@@plone/toLocalizedTime;
|
tal:define="toLocalizedTime nocall:context/@@plone/toLocalizedTime;
|
||||||
items view/comments;
|
items view/comments;
|
||||||
items_approved_or_rejected view/comments_approved;
|
|
||||||
filter view/filter|nothing;
|
filter view/filter|nothing;
|
||||||
Batch python:modules['Products.CMFPlone'].Batch;
|
Batch python:modules['Products.CMFPlone'].Batch;
|
||||||
b_size python:30;
|
b_size python:30;
|
||||||
|
@ -258,7 +258,6 @@ class CommentTransition(BrowserView):
|
|||||||
"""Call CommentTransition."""
|
"""Call CommentTransition."""
|
||||||
comment = aq_inner(self.context)
|
comment = aq_inner(self.context)
|
||||||
content_object = aq_parent(aq_parent(comment))
|
content_object = aq_parent(aq_parent(comment))
|
||||||
print("*** called: PublishComment for ", comment.Description)
|
|
||||||
workflowTool = getToolByName(comment, 'portal_workflow', None)
|
workflowTool = getToolByName(comment, 'portal_workflow', None)
|
||||||
workflow_action = self.request.form.get('workflow_action', 'publish')
|
workflow_action = self.request.form.get('workflow_action', 'publish')
|
||||||
review_state = workflowTool.getInfoFor(comment, 'review_state', '')
|
review_state = workflowTool.getInfoFor(comment, 'review_state', '')
|
||||||
|
Loading…
Reference in New Issue
Block a user