[web2py] Re: XML response

2012-12-14 Thread Charis
response.view worked perfectly. Thank you for your response. On Thursday, 13 December 2012 19:59:41 UTC, Niphlod wrote: you can set it BEFORE returning anything with response.view (e.g. for a function needing views/randomfolder/index.xml it would be response.view =

[web2py] Re: XML response

2012-12-13 Thread Niphlod
Plenty of ways: - you code a controller/function.xml template in the views folder - you leverage the generic.xml view just ending your address in .xml - you return the xml directly from the controller (return something instead of return dict(something=something)) The point is mainly what

[web2py] Re: XML response

2012-12-13 Thread Charis
I have managed to setup an xml response through index.xml. How do I set the default view for only the particular controller to be the index.xml file instead of the index.html? Thank you, Charis On Thursday, 13 December 2012 15:22:47 UTC, Niphlod wrote: Plenty of ways: - you code a

[web2py] Re: XML response

2012-12-13 Thread Niphlod
you can set it BEFORE returning anything with response.view (e.g. for a function needing views/randomfolder/index.xml it would be response.view = 'randomfolder/index.xml') On Thursday, December 13, 2012 5:39:54 PM UTC+1, Charis wrote: I have managed to setup an xml response through index.xml.