Rename @@discussion-settings to @@discussion-controlpanel
This commit is contained in:
parent
410b8c998a
commit
c45650261e
@ -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]
|
||||
|
||||
|
@ -133,6 +133,13 @@
|
||||
/>
|
||||
|
||||
<!-- Control panel -->
|
||||
<browser:page
|
||||
name="discussion-controlpanel"
|
||||
for="Products.CMFPlone.interfaces.IPloneSiteRoot"
|
||||
class=".controlpanel.DiscussionSettingsControlPanel"
|
||||
permission="cmf.ManagePortal"
|
||||
/>
|
||||
<!-- Deprecated controlpanel url -->
|
||||
<browser:page
|
||||
name="discussion-settings"
|
||||
for="Products.CMFPlone.interfaces.IPloneSiteRoot"
|
||||
|
@ -79,7 +79,7 @@ class DiscussionSettingsEditForm(controlpanel.RegistryEditForm):
|
||||
self.applyChanges(data)
|
||||
IStatusMessage(self.request).addStatusMessage(_(u"Changes saved"),
|
||||
"info")
|
||||
self.context.REQUEST.RESPONSE.redirect("@@discussion-settings")
|
||||
self.context.REQUEST.RESPONSE.redirect("@@discussion-controlpanel")
|
||||
|
||||
@button.buttonAndHandler(_('Cancel'), name='cancel')
|
||||
def handleCancel(self, action):
|
||||
|
@ -178,6 +178,7 @@
|
||||
/* Discussion Control Panel
|
||||
-------------------------------------------------------------------------- */
|
||||
|
||||
.template-discussion-controlpanel .unclickable,
|
||||
.template-discussion-settings .unclickable {
|
||||
opacity: 0.6;
|
||||
filter: alpha(opacity = 50);
|
||||
|
@ -12,10 +12,10 @@
|
||||
category="Plone"
|
||||
condition_expr=""
|
||||
icon_expr="string:${portal_url}/discussionitem_icon.png"
|
||||
url_expr="string:${portal_url}/@@discussion-settings"
|
||||
url_expr="string:${portal_url}/@@discussion-controlpanel"
|
||||
visible="True"
|
||||
i18n:attributes="title">
|
||||
<permission>Manage portal</permission>
|
||||
</configlet>
|
||||
|
||||
</object>
|
||||
</object>
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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')
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user