[FIX] rollback default conversion of js Object to py.object (not py.dict) and add...
authorXavier Morel <xmo@openerp.com>
Mon, 3 Dec 2012 12:23:12 +0000 (13:23 +0100)
committerXavier Morel <xmo@openerp.com>
Mon, 3 Dec 2012 12:23:12 +0000 (13:23 +0100)
commitf9670e67a24e4e6ce1090ffa8682fffa94e35dd1
treebf9a327d0663140be823c9521aa462f7eff084b5
parent54ea7670d36d84d47d52ede3f1d1a1c847141bc5
[FIX] rollback default conversion of js Object to py.object (not py.dict) and add default toJSON to all py.object

* Accesses in contexts & domains are object derefs, so using dicts was
  dumb

* But objects still need to round-trip through in case of e.g. o2m
  commands in contexts, so py.object needs a toJSON (or a special
  object kind needs to be added, specifically for round-tripping
  objects through)

bzr revid: xmo@openerp.com-20121203122312-gc499mujf4l0nuz7
addons/web/static/lib/py.js/lib/py.js