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