safe_eval serves as an alternative to eval() to parse domain strings, conditions and expressions, mostly based on locals condition/math builtins. It provides more restricted alternatives to evaluate simple and/or untrusted code.
Copyright (C) 2004-2014 OpenERP s.a. (http://www.openerp.com). This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
A copy of the GNU Affero General Public License a is available at http://www.gnu.org/licenses/.