Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Products.DCWorkflow
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Products.DCWorkflow
Commits
7a98bf45
Commit
7a98bf45
authored
Oct 10, 2008
by
Jens Vagelpohl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Workflow UI: Remove ancient cruft to accommodate the proprietary
(and long dead) base_cms product.
parent
574ab386
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
24 deletions
+5
-24
Products/DCWorkflow/CHANGES.txt
Products/DCWorkflow/CHANGES.txt
+3
-0
Products/DCWorkflow/WorkflowUIMixin.py
Products/DCWorkflow/WorkflowUIMixin.py
+2
-24
No files found.
Products/DCWorkflow/CHANGES.txt
View file @
7a98bf45
...
...
@@ -4,6 +4,9 @@ Products.DCWorkflow Changelog
2.2.0 (unreleased)
------------------
- Workflow UI: Remove ancient cruft to accommodate the proprietary
(and long dead) base_cms product.
- Worklists and Transitions: Add icon expression properties to worklist
and transition actions and their GenericSetup profiles.
...
...
Products/DCWorkflow/WorkflowUIMixin.py
View file @
7a98bf45
...
...
@@ -29,19 +29,6 @@ from permissions import ManagePortal
from
Guard
import
Guard
from
utils
import
_dtmldir
try
:
#
# XXX: 2004/04/28 This factoring *has* to go; if necessary,
# this module could have a hook function, which the dependent
# module could replace.
#
# If base_cms exists, include the roles it defines.
from
Products.base_cms.permissions
import
getDefaultRolePermissionMap
except
ImportError
:
def
getDefaultRolePermissionMap
():
return
{}
class
WorkflowUIMixin
:
'''
...
...
@@ -166,9 +153,6 @@ class WorkflowUIMixin:
"""Returns the acquired roles mixed with base_cms roles.
"""
roles
=
list
(
self
.
valid_roles
())
for
role
in
getDefaultRolePermissionMap
().
keys
():
if
role
not
in
roles
:
roles
.
append
(
role
)
roles
.
sort
()
return
roles
...
...
@@ -176,14 +160,8 @@ class WorkflowUIMixin:
def
getRoles
(
self
):
"""Returns the list of roles managed by this workflow.
"""
roles
=
self
.
roles
if
roles
is
not
None
:
return
roles
roles
=
getDefaultRolePermissionMap
().
keys
()
if
roles
:
# Map the base_cms roles by default.
roles
.
sort
()
return
roles
if
self
.
roles
is
not
None
:
return
self
.
roles
return
self
.
valid_roles
()
security
.
declareProtected
(
ManagePortal
,
'setRoles'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment