Turkesh Patel (openERP) has proposed merging 
lp:~openerp-dev/openobject-server/trunk-bug-1035976-tpa into 
lp:openobject-server.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #1035976 in OpenERP Server: "Workflow function activities explode if they 
contain empty lines"
  https://bugs.launchpad.net/openobject-server/+bug/1035976

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-bug-1035976-tpa/+merge/122837

[FIX] Workflow function activities explode if they contain empty lines.
-- 
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-bug-1035976-tpa/+merge/122837
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-server/trunk-bug-1035976-tpa.
=== modified file 'openerp/workflow/wkf_expr.py'
--- openerp/workflow/wkf_expr.py	2011-09-14 10:25:05 +0000
+++ openerp/workflow/wkf_expr.py	2012-09-05 10:37:18 +0000
@@ -44,7 +44,7 @@
 def _eval_expr(cr, ident, workitem, action):
     ret=False
     assert action, 'You used a NULL action in a workflow, use dummy node instead.'
-    for line in action.split('\n'):
+    for line in filter(lambda action: action != "", action.split('\n')):
         line = line.strip()
         uid=ident[0]
         model=ident[1]

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to