From c45650261e6fe60698c68e3cd21261c40ca66acc Mon Sep 17 00:00:00 2001 From: maartenkling Date: Tue, 12 Nov 2013 10:45:59 +0100 Subject: [PATCH] Rename @@discussion-settings to @@discussion-controlpanel --- CHANGES.rst | 3 +++ plone/app/discussion/browser/configure.zcml | 7 +++++++ plone/app/discussion/browser/controlpanel.py | 2 +- plone/app/discussion/browser/stylesheets/discussion.css | 1 + plone/app/discussion/profiles/default/controlpanel.xml | 4 ++-- .../tests/functional_test_comment_review_workflow.txt | 2 +- plone/app/discussion/tests/functional_test_comments.txt | 2 +- plone/app/discussion/tests/test_controlpanel.py | 2 +- 8 files changed, 17 insertions(+), 6 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index a5df199..61ff6fa 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,6 +4,9 @@ Changelog 2.3.0 (unreleased) ------------------ +- Rename @@discussion-settings to @@discussion-controlpanel + [maartenkling] + - Remove bbb directory. bbb was never really implemented. [timo] diff --git a/plone/app/discussion/browser/configure.zcml b/plone/app/discussion/browser/configure.zcml index a240167..5ad08f6 100644 --- a/plone/app/discussion/browser/configure.zcml +++ b/plone/app/discussion/browser/configure.zcml @@ -133,6 +133,13 @@ /> + + Manage portal - \ No newline at end of file + diff --git a/plone/app/discussion/tests/functional_test_comment_review_workflow.txt b/plone/app/discussion/tests/functional_test_comment_review_workflow.txt index 069875e..7cc743c 100644 --- a/plone/app/discussion/tests/functional_test_comment_review_workflow.txt +++ b/plone/app/discussion/tests/functional_test_comment_review_workflow.txt @@ -61,7 +61,7 @@ We need to commit the transaction, otherwise setting the workflow will not work. Enable anonymous comments - >>> browser.open(portal_url+'/@@discussion-settings') + >>> browser.open(portal_url+'/@@discussion-controlpanel') >>> browser.getControl(name='form.widgets.anonymous_comments:list').value = True >>> browser.getControl(name='form.buttons.save').click() diff --git a/plone/app/discussion/tests/functional_test_comments.txt b/plone/app/discussion/tests/functional_test_comments.txt index 736da64..835e5f6 100644 --- a/plone/app/discussion/tests/functional_test_comments.txt +++ b/plone/app/discussion/tests/functional_test_comments.txt @@ -182,7 +182,7 @@ Enable anonymous comment >>> browser.getControl(name='__ac_name').value = 'admin' >>> browser.getControl(name='__ac_password').value = 'secret' >>> browser.getControl(name='submit').click() - >>> browser.open(portal_url+'/@@discussion-settings') + >>> browser.open(portal_url+'/@@discussion-controlpanel') >>> browser.getControl(name='form.widgets.anonymous_comments:list').value = [True] >>> browser.getControl(name='form.buttons.save').click() >>> browser.open(portal_url + '/logout') diff --git a/plone/app/discussion/tests/test_controlpanel.py b/plone/app/discussion/tests/test_controlpanel.py index a184bb7..5d97b5b 100644 --- a/plone/app/discussion/tests/test_controlpanel.py +++ b/plone/app/discussion/tests/test_controlpanel.py @@ -33,7 +33,7 @@ class RegistryTest(unittest.TestCase): def test_discussion_controlpanel_view(self): view = getMultiAdapter( (self.portal, self.portal.REQUEST), - name="discussion-settings" + name="discussion-controlpanel" ) view = view.__of__(self.portal) self.assertTrue(view())