← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 644267] Re: safe_eval() incompatible with python2.7's bytecode

 

We need to backport the various improvements made on safe_eval in trunk
to support these cases as well as Python 2.7, this is all fixed in
trunk.

** Changed in: openobject-server
       Status: New => Confirmed

** Changed in: openobject-server
    Milestone: None => 5.0.16

** Changed in: openobject-server
     Assignee: (unassigned) => Jay (OpenERP) (jvo-openerp)

** Summary changed:

- safe_eval() incompatible with python2.7's bytecode
+ [5.0.14] safe_eval() incompatible with python2.7's bytecode

** Tags added: maintenance

-- 
[5.0.14] safe_eval() incompatible with python2.7's bytecode
https://bugs.launchpad.net/bugs/644267
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Server: Confirmed

Bug description:
openerp-server 5.0.14 when run on python 2.7 is basically useless (when using addons), due to the changes in low-level python 2.7 opcodes. The safe_eval() function in bin/tools/safe_eval.py doesn't expect the new opcodes and fails on virtually every operation. The attached patch adds the four missing py2.7 opcodes to safe_eval and fixes the problem.