- -
-

pyams_content.features.review.zmi package

-
-

Module contents

-
-
-class pyams_content.features.review.zmi.ReviewCommentAddForm(request)
-

Bases: object

-

Review comment add form

-
-
-template = <BoundViewTemplate of None>
-
- -
- -
-
-class pyams_content.features.review.zmi.ReviewCommentsView(request)
-

Bases: pyams_content.features.review.zmi.SharedContentReviewCommentsView

-

“Get review comments

-
-
-template = <BoundViewTemplate of None>
-
- -
- -
-
-class pyams_content.features.review.zmi.SharedContentReviewAddCommentAction(context, request, view, manager)
-

Bases: pyams_skin.viewlet.toolbar.JsToolbarAction

-

Shared content review add comment action

-
-
-label = 'Add comment...'
-
- -
-
-url = 'PyAMS_content.review.addCommentAction'
-
- -
- -
-
-class pyams_content.features.review.zmi.SharedContentReviewCommentsMenu(context, request, view, manager=None)
-

Bases: pyams_skin.viewlet.menu.MenuItem

-

Shared content review comments menu

-
-
-badge_class = 'bg-color-info'
-
- -
-
-icon_class = 'fa-comments-o'
-
- -
-
-label = 'Comments'
-
- -
-
-update()
-
- -
-
-url = '#review-comments.html'
-
- -
- -
-
-class pyams_content.features.review.zmi.SharedContentReviewCommentsView
-

Bases: pyams_zmi.view.InnerAdminView

-

Shared content review comments view

-
-
-comments = None
-
- -
-
-get_age(comment)
-
- -
-
-get_avatar(principal)
-
- -
-
-get_date(comment)
-
- -
-
-get_principal(principal_id)
-
- -
-
-legend = 'Review comments'
-
- -
-
-security = None
-
- -
-
-update()
-
- -
- -
-
-class pyams_content.features.review.zmi.WfSharedContentReviewAJAXForm(context, request)
-

Bases: pyams_form.form.AJAXAddForm, pyams_content.features.review.zmi.WfSharedContentReviewForm

-

Shared content review form, JSON renderer

-
-
-get_ajax_output(changes)
-
- -
- -
-
-class pyams_content.features.review.zmi.WfSharedContentReviewForm(context, request)
-

Bases: pyams_zmi.form.AdminDialogAddForm

-

Shared content review form

-
-
-ajax_handler = 'ask-review.json'
-
- -
-
-buttons = <z3c.form.button.Buttons object>
-
- -
-
-createAndAdd(data)
-
- -
-
-edit_permission = 'pyams.ManageContent'
-
- -
-
-fields = <z3c.form.field.Fields object>
-
- -
-
-icon_css_class = 'fa fa-fw fa-eye'
-
- -
-
-input_css_class = 'col-md-8'
-
- -
-
-label_css_class = 'control-label col-md-4'
-
- -
-
-legend = 'Content review request'
-
- -
-
-updateActions()
-
- -
-
-updateWidgets(prefix=None)
-
- -
- -
-
-class pyams_content.features.review.zmi.WfSharedContentReviewMenu(context, request, view, manager)
-

Bases: pyams_skin.viewlet.toolbar.ToolbarMenuItem

-

Shared content review menu

-
-
-label = 'Ask for review...'
-
- -
-
-label_css_class = 'fa fa-fw fa-eye'
-
- -
-
-modal_target = True
-
- -
-
-url = 'ask-review.html'
-
- -
- -
-
- - -