odoo-13.0/web_oca/web_domain_field/static/lib/js/pyeval.js
// which jsonify back to JS objects
which jsonify back to JS objects
which jsonify back to JS objects
function wrap(value) {
        if (value === null) { return py.None; }
        switch (typeof value) {
        case 'undefined': throw new Error("No conversion for undefined");
        case 'boolean': return py.bool.fromJSON(value);
        case 'number': return py.float.fromJSON(value);
        case 'string': return py.str.fromJSON(value);
        }
        switch(value.constructor) {
        case Object: return wrapping_dict.fromJSON(value);
        case Array: return wrapping_list.fromJSON(value);
        }
        throw new Error("ValueError: unable to wrap " + value);
    }
function wrap ( value ) { if ( value === null ) { return py . None ; } switch ( typeof value ) { case 'undefined' : throw new Error ( "No conversion for undefined" ) ; case 'boolean' : return py . bool . fromJSON ( value ) ; case 'number' : return py . float . fromJSON ( value ) ; case 'string' : return py . str . fromJSON ( value ) ; } switch ( value . constructor ) { case Object : return wrapping_dict . fromJSON ( value ) ; case Array : return wrapping_list . fromJSON ( value ) ; } throw new Error ( "ValueError: unable to wrap " + value ) ; }
which jsonify back to JS objects
which jsonify back to JS objects