Skip to content

Commit

Permalink
Merge pull request #34 from plone/maurits/fix-startup-warnings
Browse files Browse the repository at this point in the history
Fix deprecation warning at startup for setDefaultRoles.
  • Loading branch information
mauritsvanrees authored Aug 24, 2020
2 parents c237400 + eda6670 commit ed89ee5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Products/CMFPlacefulWorkflow/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
""" Zope 2 permissions
"""

from Products.CMFCore.permissions import setDefaultRoles
from AccessControl.Permission import addPermission


ManageWorkflowPolicies = 'CMFPlacefulWorkflow: Manage workflow policies'
setDefaultRoles(ManageWorkflowPolicies, ('Manager', 'Site Administrator'))
addPermission(ManageWorkflowPolicies, ('Manager', 'Site Administrator'))
2 changes: 2 additions & 0 deletions news/34.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix deprecation warning at startup for setDefaultRoles.
[maurits]
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[metadata]
long_description = file: README.rst, CHANGES.rst

[zest.releaser]
create-wheel = yes

Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

version = '2.0.3.dev0'


setup(
name='Products.CMFPlacefulWorkflow',
version=version,
description="Workflow policies for Plone",
long_description=(open("README.rst").read() + "\n" +
open("CHANGES.rst").read()),
# Note: long_description is in setup.cfg
# to avoid needing workarounds for UnicodeDecodeErrors.
classifiers=[
"Development Status :: 5 - Production/Stable",
"Framework :: Plone",
Expand Down

0 comments on commit ed89ee5

Please sign in to comment.