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
b1cf1994
Commit
b1cf1994
authored
Feb 14, 2011
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- indentation cleanup
parent
5fe77113
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
14 deletions
+10
-14
Products/DCWorkflow/Transitions.py
Products/DCWorkflow/Transitions.py
+1
-3
Products/DCWorkflow/doc/examples/staging/checkin.py
Products/DCWorkflow/doc/examples/staging/checkin.py
+1
-1
Products/DCWorkflow/doc/examples/staging/checkout.py
Products/DCWorkflow/doc/examples/staging/checkout.py
+1
-1
Products/DCWorkflow/utils.py
Products/DCWorkflow/utils.py
+7
-9
No files found.
Products/DCWorkflow/Transitions.py
View file @
b1cf1994
...
...
@@ -11,8 +11,6 @@
#
##############################################################################
""" Transitions in a web-configurable workflow.
$Id$
"""
from
AccessControl
import
ClassSecurityInfo
...
...
@@ -179,7 +177,7 @@ class TransitionDefinition (SimpleItem):
expr
=
None
if
text
:
expr
=
Expression
(
str
(
text
))
expr
=
Expression
(
str
(
text
))
self
.
var_exprs
[
id
]
=
expr
if
REQUEST
is
not
None
:
...
...
Products/DCWorkflow/doc/examples/staging/checkin.py
View file @
b1cf1994
...
...
@@ -4,4 +4,4 @@
object
=
sci
.
object
vt
=
object
.
portal_versions
if
vt
.
isCheckedOut
(
object
):
vt
.
checkin
(
object
,
sci
.
kwargs
.
get
(
'comment'
,
''
))
vt
.
checkin
(
object
,
sci
.
kwargs
.
get
(
'comment'
,
''
))
Products/DCWorkflow/doc/examples/staging/checkout.py
View file @
b1cf1994
...
...
@@ -7,4 +7,4 @@
object
=
sci
.
object
vt
=
object
.
portal_versions
if
not
vt
.
isCheckedOut
(
object
):
vt
.
checkout
(
object
)
vt
.
checkout
(
object
)
Products/DCWorkflow/utils.py
View file @
b1cf1994
...
...
@@ -11,8 +11,6 @@
#
##############################################################################
""" Some common utilities.
$Id$
"""
import
os
...
...
@@ -38,13 +36,13 @@ def ac_inherited_permissions(ob, all=0):
for
p
in
perms
:
d
[
p
[
0
]]
=
None
r
=
gather_permissions
(
ob
.
__class__
,
[],
d
)
if
all
:
if
hasattr
(
ob
,
'_subobject_permissions'
):
for
p
in
ob
.
_subobject_permissions
():
pname
=
p
[
0
]
if
not
d
.
has_key
(
pname
):
d
[
pname
]
=
1
r
.
append
(
p
)
r
=
list
(
perms
)
+
r
if
hasattr
(
ob
,
'_subobject_permissions'
):
for
p
in
ob
.
_subobject_permissions
():
pname
=
p
[
0
]
if
not
d
.
has_key
(
pname
):
d
[
pname
]
=
1
r
.
append
(
p
)
r
=
list
(
perms
)
+
r
return
r
def
modifyRolesForPermission
(
ob
,
pname
,
roles
):
...
...
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