summaryrefslogtreecommitdiff
path: root/bin/workflow
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@tinyerp.com>2008-06-17 20:17:23 +0000
committerFabien Pinckaers <fp@tinyerp.com>2008-06-17 20:17:23 +0000
commit8d16581e0f64c4f40e15495c0db3edea9d765034 (patch)
tree3b5a756ff2e7aa3f9886601a07c2a8160ef0d51a /bin/workflow
parentd89c86bd9d457f7a7bdb14b6c555eca804da7097 (diff)
Improvements inmenus
Translations by modules removed print statement bzr revid: fp@tinyerp.com-eddee689d274afc56e6b7703a7cd22b9792f2c7b
Diffstat (limited to 'bin/workflow')
-rw-r--r--bin/workflow/instance.py3
-rw-r--r--bin/workflow/wkf_expr.py5
-rw-r--r--bin/workflow/wkf_service.py1
3 files changed, 0 insertions, 9 deletions
diff --git a/bin/workflow/instance.py b/bin/workflow/instance.py
index 7b036ae2c97..d25bc367f4c 100644
--- a/bin/workflow/instance.py
+++ b/bin/workflow/instance.py
@@ -51,11 +51,9 @@ def delete(cr, ident):
def validate(cr, inst_id, ident, signal, force_running=False):
cr.execute("select * from wkf_workitem where inst_id=%d", (inst_id,))
for witem in cr.dictfetchall():
- print '-----'
stack = []
workitem.process(cr, witem, ident, signal, force_running, stack=stack)
# An action is returned
- print '----- Got', stack
_update_end(cr, inst_id, ident)
return stack and stack[0] or False
@@ -64,7 +62,6 @@ def update(cr, inst_id, ident):
for witem in cr.dictfetchall():
stack = []
workitem.process(cr, witem, ident, stack=stack)
- print 'End Update'
return _update_end(cr, inst_id, ident)
def _update_end(cr, inst_id, ident):
diff --git a/bin/workflow/wkf_expr.py b/bin/workflow/wkf_expr.py
index 434e091f4da..9a86b474f86 100644
--- a/bin/workflow/wkf_expr.py
+++ b/bin/workflow/wkf_expr.py
@@ -70,8 +70,6 @@ class Env(dict):
def _eval_expr(cr, ident, workitem, action):
ret=False
- print '***'
- print action
for line in action.split('\n'):
uid=ident[0]
model=ident[1]
@@ -83,17 +81,14 @@ def _eval_expr(cr, ident, workitem, action):
else:
wf_service = netsvc.LocalService("object_proxy")
env = Env(wf_service, cr, uid, model, ids)
- print line
ret = eval(line, env)
return ret
def execute_action(cr, ident, workitem, activity):
- print 'Execute Action'
wf_service = netsvc.LocalService("object_proxy")
obj = pooler.get_pool(cr.dbname).get('ir.actions.server')
ctx = {'active_id':ident[2], 'active_ids':[ident[2]]}
result = obj.run(cr, ident[0], [activity['action_id']], ctx)
- print 'Result', result
return result
def execute(cr, ident, workitem, activity):
diff --git a/bin/workflow/wkf_service.py b/bin/workflow/wkf_service.py
index 0dc9ccd978e..f1c103ccfe0 100644
--- a/bin/workflow/wkf_service.py
+++ b/bin/workflow/wkf_service.py
@@ -85,7 +85,6 @@ class workflow_service(netsvc.Service):
cr.execute('select id from wkf_instance where res_id=%d and res_type=%s and state=%s', (res_id, res_type, 'active'))
for (id,) in cr.fetchall():
res2 = instance.validate(cr, id, ident, signal)
- print 'Inst val,', res2
result = result or res2
return result