Rifakat (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.0-opw-382010-rha into 
lp:openobject-addons/6.0.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)
Related bugs:
  Bug #921442 in OpenERP Addons: "[6.0/trunk] Encoding trouble in mail_message 
parsing and base_action_rule processing"
  https://bugs.launchpad.net/openobject-addons/+bug/921442

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-382010-rha/+merge/91264

Hello,

It raises encoding error while Regex has non string character in "Automated 
Actions" (base_action_rule).

Kindly review this.

Thanks,
Rifakat
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-382010-rha/+merge/91264
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-opw-382010-rha.
=== modified file 'base_action_rule/base_action_rule.py'
--- base_action_rule/base_action_rule.py	2012-01-24 10:00:44 +0000
+++ base_action_rule/base_action_rule.py	2012-02-02 12:59:24 +0000
@@ -356,8 +356,8 @@
         reg_name = action.regex_name
         result_name = True
         if reg_name:
-            ptrn = re.compile(str(reg_name))
-            _result = ptrn.search(str(obj.name))
+            ptrn = re.compile(reg_name)
+            _result = ptrn.search(obj.name)
             if not _result:
                 result_name = False
         regex_n = not reg_name or result_name

_______________________________________________
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