[gen]: method Wrapper.do: added param 'noSecurity' allowing to bypass check of roles mentioned as conditions for triggering worfklow actions.

This commit is contained in:
Gaetan Delannay 2012-07-23 15:24:44 +02:00
parent 699cc8346b
commit 178059ba1b
4 changed files with 11 additions and 9 deletions

View file

@ -255,11 +255,12 @@ class AbstractWrapper(object):
format=format)
def do(self, transition, comment='', doAction=True, doNotify=True,
doHistory=True):
doHistory=True, noSecurity=False):
'''This method allows to trigger on p_self a workflow p_transition
programmatically. See doc in self.o.do.'''
return self.o.trigger(transition, comment, doAction=doAction,
doNotify=doNotify, doHistory=doHistory, doSay=False)
doNotify=doNotify, doHistory=doHistory,
doSay=False, noSecurity=noSecurity)
def log(self, message, type='info'): return self.o.log(message, type)
def say(self, message, type='info'): return self.o.say(message, type)