← Back to team overview

openerp-dev-web team mailing list archive

[Merge] lp:~openerp-dev/openobject-client-web/6.0-opw-4396-sma into lp:openobject-client-web/6.0

 

Sananaz (Open ERP) has proposed merging lp:~openerp-dev/openobject-client-web/6.0-opw-4396-sma into lp:openobject-client-web/6.0.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-4396-sma/+merge/53227

Hello,

Its maintenance case (ID:4396).
Description is:
Hello, i want change default language tu russian, but have an error:
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred...
<type 'exceptions.ValueError'>: invalid literal for int() with base 10: '8888060@xxxxxx'
args = ("invalid literal for int() with base 10: '8888060@xxxxxx'",)
message = "invalid literal for int() with base 10: '8888060@xxxxxx'"

Please Check with:
- Install Russian Language > Go to Preferences > Add Email Id with (8888060@xxxxxx) and click on `OK`
- It gives traceback

Problem due to regular expression. I have resolve it with change the `re` of integer.
Also i have test with the bug(702568) for which we have used the `re`.
- https://bugs.launchpad.net/openobject-client-web/+bug/702568

Thank you.


-- 
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-4396-sma/+merge/53227
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-client-web/6.0-opw-4396-sma.
=== modified file 'addons/openerp/controllers/preferences.py'
--- addons/openerp/controllers/preferences.py	2011-02-08 18:57:20 +0000
+++ addons/openerp/controllers/preferences.py	2011-03-14 11:58:58 +0000
@@ -33,7 +33,7 @@
     action = "/openerp/pref/password"
     string = _('Change your password')
 
-int_pattern = re.compile(r'\d+')
+int_pattern = re.compile(r'^-{0,1}\d+$')
 class Preferences(Form):
 
     _cp_path = "/openerp/pref"


Follow ups