Merge lp:~openerp-dev/openobject-client/trunk-bug-671926-nch into lp:openobject-client
Proposed by
Naresh(OpenERP)
Status: | Merged |
---|---|
Merged at revision: | 1923 |
Proposed branch: | lp:~openerp-dev/openobject-client/trunk-bug-671926-nch |
Merge into: | lp:openobject-client |
Diff against target: |
59 lines (+20/-3) 1 file modified
bin/tiny_socket.py (+20/-3) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-client/trunk-bug-671926-nch |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
tfr (Openerp) | Pending | ||
Olivier Dony (Odoo) | Pending | ||
Naresh(OpenERP) | Pending | ||
Review via email: mp+66747@code.launchpad.net |
To post a comment you must log in.
Hi Naresh,
May I suggest some additional improvements: UnpicklingError ('Unsafe pickled class instance: %s.%s' % (module,name))
- please include the module and name in the exceptions message, for diagnostics purpose, e.g:
raise cPickle.
- different kinds of exceptions may be passed over netrpc apparently, so until we patch the server to wrap them all, we can allow them all like this (need to add import 'exceptions' and 'types'):
EXCEPTION_CLASSES = [x for x in dir(exceptions) if type(getattr( exceptions, x)) == types.TypeType]
SAFE_CLASSES = { 'exceptions' : EXCEPTION_CLASSES }
Thanks!