Commit Graph

18 Commits

Author SHA1 Message Date
Vo Minh Thu a51b6912bd [FIX] safe_eval: better exception handling:
- the re-raising of exceptions ignored the "legal" exceptions
(the one used to early abort RPC calls and generate pop-ups)
- re-raising the exception was attempting to re-use the original
exception type but it does not always take only one argument
so it was breaking.

lp bug: https://launchpad.net/bugs/1146256 fixed

bzr revid: vmt@openerp.com-20130320132238-qzo3jptww59ndlch
2013-03-20 14:22:38 +01:00
Vo Minh Thu d43dba744c safe_eval: re-raise the same exception type when completing it.
bzr revid: vmt@openerp.com-20130226094446-7c2dw5c5eou0lg8r
2013-02-26 10:44:46 +01:00
Vo Minh Thu c62780673c [FIX] tools.safe_eval: we want to see the expr which fail to eval(), so report it in the exception.
bzr revid: vmt@openerp.com-20130225163525-3g9qw1g3hkyyxf1j
2013-02-25 17:35:25 +01:00
Vo Minh Thu 0de24bf983 [IMP] safe_eval: do not log exceptions, when re-raising a new exception, make the stacktrace complete.
bzr revid: vmt@openerp.com-20130220102259-avee8fx2a1kpdog3
2013-02-20 11:22:59 +01:00
Cecile Tonglet 5f0070dcb6 [FIX] Remove unused imports and fix some imports that doesn't use the new namespace
bzr revid: cto@openerp.com-20121217143029-e9ki4ftwihq7pdme
2012-12-17 15:30:29 +01:00
Holger Brunn 3666ed9828 [FIX] (safe_eval) opcode STORE_MAP belongs into _CONST_OPCODES
otherwise, const_eval("{'hello':'world'}") won't work

bzr revid: hbrunn@therp.nl-20120613090222-gt33zwz1aymcmxqo
2012-06-13 11:02:22 +02:00
Christophe Simonis 240943961e [IMP] log exceptions in safe_eval
bzr revid: chs@openerp.com-20120605152630-d4flr4c3mwl7wnvx
2012-06-05 17:26:30 +02:00
Florent Xicluna 5056899093 [MERGE] merged trunk.
bzr revid: florent.xicluna@gmail.com-20120208172825-r6og0hfoc181pdt1
2012-02-08 18:28:25 +01:00
Vo Minh Thu a142292f91 [IMP] openerp.tools: _logger with fully qualified module name.
bzr revid: vmt@openerp.com-20120124140056-hqoy49bh7wyr1xce
2012-01-24 15:00:56 +01:00
Florent Xicluna f65509f1ce [FIX] AttributeError, 'module' has no attribute 'ext_eval'
bzr revid: florent.xicluna@gmail.com-20120119215553-qlb4992c37vi6cuh
2012-01-19 22:55:53 +01:00
Vo Minh Thu 4d77130107 [IMP] tools: removed literal_eval as we drop python 2.6 support.
bzr revid: vmt@openerp.com-20120118112400-n7uulbbwm7wr5lpu
2012-01-18 12:24:00 +01:00
Olivier Dony 0eb2986e15 [IMP] safe_eval: allow INPLACE* operator opcodes as introduced in PEP-203
bzr revid: odo@openerp.com-20111222101106-h3qbhx53hyhyjor5
2011-12-22 11:11:06 +01:00
Numerigraphe - Lionel Sausin 4651cf935e [FIX] unmutable defaults in safe_eval
bzr revid: ls@numerigraphe.fr-20111107152640-t28rgkfs05jwduab
2011-11-07 16:26:40 +01:00
Olivier Dony 33947042fd [IMP] safe_eval: allow OPCODES for try/except/finally
bzr revid: odo@openerp.com-20111005010136-xkowcqda3kres691
2011-10-05 03:01:36 +02:00
Olivier Dony fb0c0e8d90 [IMP] safe_eval: allow 'max' builtin
bzr revid: odo@openerp.com-20110718145322-wid88kpg568xyxu7
2011-07-18 16:53:22 +02:00
Quentin (OpenERP) 4432d6a9f2 [IMP] safe_eval: added min() in usable functions
bzr revid: qdp-launchpad@openerp.com-20110614082920-aokyfw4iizj0fte5
2011-06-14 10:29:20 +02:00
Vo Minh Thu d02ffafe30 [MERGE] merged the 6.0 branch.
bzr revid: vmt@openerp.com-20110322140841-6lt7ky1ohxbrgx68
2011-03-22 15:08:41 +01:00
Vo Minh Thu f8572e5c60 [IMP] openerp python module.
- Some logging code moved from netsvc.py to loglevels.py
- Changed imports to use the new openerp module
- config and netsvc initialization calls move to openerp-server.py
- Moved openerp-server.py outside the old bin directory
- Some imports in tools moved inside the methods to break mutual-dependencies

bzr revid: vmt@openerp.com-20110207125723-ooee7d7ng5elmkso
2011-02-07 13:57:23 +01:00