Merge lp:~unifield-team/unifield-web/us-1497 into lp:unifield-web

Proposed by Quentin THEURET @Amaris
Status: Merged
Merged at revision: 4795
Proposed branch: lp:~unifield-team/unifield-web/us-1497
Merge into: lp:unifield-web
Diff against target: 35 lines (+7/-0)
2 files modified
addons/openerp/controllers/utils.py (+3/-0)
addons/openerp/utils/rpc.py (+4/-0)
To merge this branch: bzr merge lp:~unifield-team/unifield-web/us-1497
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+300328@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'addons/openerp/controllers/utils.py'
--- addons/openerp/controllers/utils.py 2015-07-13 13:49:40 +0000
+++ addons/openerp/controllers/utils.py 2016-07-18 14:07:16 +0000
@@ -150,6 +150,9 @@
150 nb_mod = rpc.session.number_update_modules(db) or ''150 nb_mod = rpc.session.number_update_modules(db) or ''
151 return login(cherrypy.request.path_info, message=_('The server is updating %s modules, please wait ...') % (nb_mod,),151 return login(cherrypy.request.path_info, message=_('The server is updating %s modules, please wait ...') % (nb_mod,),
152 db=db, user=user, action=action, origArgs=get_orig_args(kw))152 db=db, user=user, action=action, origArgs=get_orig_args(kw))
153 if action == 'login' and login_ret == -4:
154 return login(cherrypy.request.path_info, message=_('A script during patch failed! Login is forbidden for the moment. Please contact your administrator'),
155 db=db, user=user, action=action, origArgs=get_orig_args(kw))
153 elif login_ret <= 0:156 elif login_ret <= 0:
154 # Bad login attempt157 # Bad login attempt
155 if action == 'login':158 if action == 'login':
156159
=== modified file 'addons/openerp/utils/rpc.py'
--- addons/openerp/utils/rpc.py 2016-03-04 15:34:25 +0000
+++ addons/openerp/utils/rpc.py 2016-07-18 14:07:16 +0000
@@ -134,6 +134,8 @@
134 common.error('updater.py', err.code)134 common.error('updater.py', err.code)
135 elif err.code.startswith('ServerUpdate'):135 elif err.code.startswith('ServerUpdate'):
136 common.error('ServerUpdate', err.code)136 common.error('ServerUpdate', err.code)
137 elif err.code.startswith('PatchFailed'):
138 common.error('PatchFailed', err.code)
137 elif err.code.startswith('AccessDenied'):139 elif err.code.startswith('AccessDenied'):
138 raise openobject.errors.AccessDenied(err.code, _('Access Denied'))140 raise openobject.errors.AccessDenied(err.code, _('Access Denied'))
139 else:141 else:
@@ -308,6 +310,8 @@
308 return -2310 return -2
309 elif e.title == 'ServerUpdate':311 elif e.title == 'ServerUpdate':
310 return -3312 return -3
313 elif e.title == 'PatchFailed':
314 return -4
311 return -1315 return -1
312316
313 if uid <= 0:317 if uid <= 0:

Subscribers

People subscribed via source and target branches

to all changes: