[web2py] Re: REF: Generate XML/JSON IN WEB2PY

2013-05-15 Thread Massimo Di Pierro
If you return a dictionary which contains data (but not helpers) than you just call the action with .json or .xml extension and the dict will automatically be converted. On Wednesday, 15 May 2013 14:03:37 UTC-5, Niphlod wrote: > > for a resultset or what else ? > > def test(): > resultset

[web2py] Re: REF: Generate XML/JSON IN WEB2PY

2013-05-15 Thread Niphlod
for a resultset or what else ? def test(): resultset = db(query).select() return resultset.as_xml() #return resultset.as_json() On Wednesday, May 15, 2013 4:54:17 PM UTC+2, software.ted wrote: > > Is there a way of generating XML or JSON in web2py say from a database. > > -- >