Commit b1cf1994 authored by 's avatar

- indentation cleanup

parent 5fe77113
......@@ -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:
......
......@@ -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', ''))
......@@ -7,4 +7,4 @@
object = sci.object
vt = object.portal_versions
if not vt.isCheckedOut(object):
vt.checkout(object)
vt.checkout(object)
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment