From bf20752b69da5e5f56cc756613b63cce54fa6465 Mon Sep 17 00:00:00 2001 From: Katja Suess Date: Sun, 8 Dec 2019 20:01:40 +0100 Subject: [PATCH] bulk moderation of comments extended for comment_multiple_state_review_workflow, refactoring and tests --- plone/app/discussion/browser/configure.zcml | 8 ++ .../browser/javascripts/moderation.js | 89 +++++++++++-- plone/app/discussion/browser/moderation.pt | 17 ++- plone/app/discussion/browser/moderation.py | 96 +++++++------- plone/app/discussion/events.py | 6 + plone/app/discussion/interfaces.py | 4 + .../definition.xml | 105 --------------- .../definition.xml | 4 +- .../tests/robot/test_moderation.robot | 64 +++++++++ .../test_moderation_multiple_state_view.py | 124 ++++++++++++++++++ .../discussion/tests/test_moderation_view.py | 17 --- 11 files changed, 341 insertions(+), 193 deletions(-) delete mode 100644 plone/app/discussion/profiles/default/workflows/comment_3state_review_workflow/definition.xml create mode 100644 plone/app/discussion/tests/robot/test_moderation.robot create mode 100644 plone/app/discussion/tests/test_moderation_multiple_state_view.py diff --git a/plone/app/discussion/browser/configure.zcml b/plone/app/discussion/browser/configure.zcml index 621428c..9572de5 100644 --- a/plone/app/discussion/browser/configure.zcml +++ b/plone/app/discussion/browser/configure.zcml @@ -100,6 +100,14 @@ permission="plone.app.discussion.ReviewComments" /> + +