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
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.
>
> --
>
2 matches
Mail list logo