~jfb-tempo-consulting/unifield-web/us-736

« back to all changes in this revision

Viewing changes to addons/openerp/utils/rpc.py

  • Committer: jf
  • Date: 2015-03-26 15:46:25 UTC
  • mfrom: (4748.4.1 unifield-web)
  • Revision ID: jfb@tempo-consulting.fr-20150326154625-kwyxiu4oorvw875l
BKLG-29 [IMP] Consistency check needed while restoring a db
lp:~jfb-tempo-consulting/unifield-web/bklg-29

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
                    common.concurrency(err.message, err.data, args)
131
131
                else:
132
132
                    common.warning(err.data)
 
133
            elif err.code.startswith('updater.py'):
 
134
                common.error('updater.py', err.code)
133
135
            elif err.code.startswith('AccessDenied'):
134
136
                raise openobject.errors.AccessDenied(err.code, _('Access Denied'))
135
137
            else:
294
296
        try:
295
297
            uid = self.execute_noauth('common', 'login', db, user, password)
296
298
        except Exception, e:
 
299
            if e.title == 'updater.py':
 
300
                return -2
297
301
            return -1
298
302
 
299
303
        if uid <= 0: