Skip to content

Commit

Permalink
Merge pull request #254 from plone/maurits-warnings
Browse files Browse the repository at this point in the history
Fix DeprecationWarnings.
  • Loading branch information
davisagli authored Jan 22, 2025
2 parents 4a5fa90 + f6ce0df commit f858bc1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions news/4090.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix DeprecationWarnings. [maurits]
6 changes: 3 additions & 3 deletions plone/app/discussion/browser/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<browser:page
name="moderate-comments"
for="plone.app.layout.navigation.interfaces.INavigationRoot"
for="plone.base.interfaces.INavigationRoot"
class=".moderation.View"
permission="plone.app.discussion.ReviewComments"
layer="..interfaces.IDiscussionLayer"
Expand All @@ -44,7 +44,7 @@

<browser:page
name="bulk-actions"
for="plone.app.layout.navigation.interfaces.INavigationRoot"
for="plone.base.interfaces.INavigationRoot"
class=".moderation.BulkActionsView"
permission="plone.app.discussion.ReviewComments"
layer="..interfaces.IDiscussionLayer"
Expand All @@ -61,7 +61,7 @@

<browser:page
name="moderate-comments-enabled"
for="plone.app.layout.navigation.interfaces.INavigationRoot"
for="plone.base.interfaces.INavigationRoot"
class=".moderation.ModerateCommentsEnabled"
permission="zope2.View"
layer="..interfaces.IDiscussionLayer"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Setting up and logging in
First we have to set up some things and login.

>>> app = layer['app']
>>> from plone.testing.z2 import Browser
>>> from plone.testing.zope import Browser
>>> from plone.app.testing import SITE_OWNER_PASSWORD
>>> from plone.app.testing import TEST_USER_PASSWORD
>>> browser = Browser(app)
Expand Down
2 changes: 1 addition & 1 deletion plone/app/discussion/tests/functional_test_comments.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Setting up and log in
First we have to set up some things and login.

>>> app = layer['app']
>>> from plone.testing.z2 import Browser
>>> from plone.testing.zope import Browser
>>> from plone.app.testing import SITE_OWNER_PASSWORD
>>> from plone.app.testing import TEST_USER_PASSWORD
>>> browser = Browser(app)
Expand Down

0 comments on commit f858bc1

Please sign in to comment.