summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/py.js
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@openerp.com>2013-01-04 15:00:00 +0100
committerChristophe Matthieu <chm@openerp.com>2013-01-04 15:00:00 +0100
commita1e39f8d75ef757f6dd3380decdd650c72557190 (patch)
tree792da5861cb1563dd9a4b7c76a958dcf3de3b478 /addons/web/static/lib/py.js
parent3eb82b81dd55f0871a4ecc2e8326fb152da276bc (diff)
[FIX] py.js: add the name of value to display error when debugging.
bzr revid: chm@openerp.com-20130104140000-22t1wj95jp7ro2ho
Diffstat (limited to 'addons/web/static/lib/py.js')
-rw-r--r--addons/web/static/lib/py.js/lib/py.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/web/static/lib/py.js/lib/py.js b/addons/web/static/lib/py.js/lib/py.js
index 4ef92b40112..8d6443b7753 100644
--- a/addons/web/static/lib/py.js/lib/py.js
+++ b/addons/web/static/lib/py.js/lib/py.js
@@ -521,7 +521,7 @@ var py = {};
}
};
py.PY_getAttr = function (o, attr_name) {
- return PY_ensurepy(o.__getattribute__(attr_name));
+ return PY_ensurepy(o.__getattribute__(attr_name),attr_name);
};
py.PY_str = function (o) {
var v = o.__str__();
@@ -998,7 +998,7 @@ var py = {};
}
var t = py.PY_call(py.tuple);
for(var i=0; i<ar.length; ++i) {
- t._values.push(PY_ensurepy(ar[i]));
+ t._values.push(PY_ensurepy(ar[i],i));
}
return t;
}
@@ -1032,7 +1032,7 @@ var py = {};
if (!d.hasOwnProperty(k)) { continue; }
instance.__setitem__(
py.str.fromJSON(k),
- PY_ensurepy(d[k]));
+ PY_ensurepy(d[k],k));
}
return instance;
},