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 = > '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. 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 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 kind of xml should you return" ;-P >>> >>> Il giorno giovedì 13 dicembre 2012 15:36:45 UTC+1, Charis ha scritto: >>>> >>>> Hi all, >>>> >>>> I would like to ask how I can generate an XML response to the >>>> views instead of html (index.xml instead of index.html) >>>> >>>> Thank you, >>>> Charis >>>> >>> --