Re: [web2py] Serialize object having js-function()

2016-04-28 Thread Manuele Pesenti
Il 28/04/16 00:26, Val K ha scritto: > Hi! > I made mini but useful and universal class to hold json-serializable > objects. > Main goal - serialize objects having items-function() as js-objects > It looks very interesting to me :) Thank you for sharing! I'll notice here if I use it for a little

[web2py] Serialize object having js-function()

2016-04-27 Thread Val K
Hi! I made mini but useful and universal class to hold json-serializable objects. Main goal - serialize objects having items-function() as js-objects from types import MethodType from gluon.contrib import simplejson as sj class Smart_Storage(dict): """ A Smart_Storage object is like