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 = 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.
>>
>> -- 
>>
>> .......................................................................................
>> Teddy Lubasi Nyambe
>> Opensource Zambia
>> Lusaka, ZAMBIA
>>
>> Cell: +260 97 7760473
>> website: http://www.opensource.org.zm
>>
>> ~/
>> Human Knowledge belongs to the world! - AntiTrust
>>
>> Man is a tool-using animal. Without tools he is nothing, with tools he is 
>> all - Thomas Carlyle 1795-1881
>>
>> /~ 
>>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to