This may help... In db.py:
response.generic_patterns = ['*.xml'] See this: http://web2py.com/books/default/chapter/29/10#Generic-views On Wednesday, December 19, 2012 10:31:58 PM UTC, Derek wrote: > > Yeah, I got the same issue as you. I have a site called 'customers2' and a > controller 'customer' and a function 'index' - when i add a '.xml' onto > 'index' i get this: > > invalid view (customer/index.xml) > On Wednesday, December 19, 2012 2:38:36 PM UTC-7, lucas wrote: >> >> hello one and all, >> >> i am trying to understand the hello3 function under simple_examples and i >> don't understand adding .xml to the url directs web2py to convert it into >> an xml doc instead of the default html file when the .xml is not included >> in the url. i tried adding .xml to a few of my html returned functions and >> it doesn't convert it into xml. so how is that done because i want to be >> able to have some data sent as an xml doc as hello3 function? because to >> me it seems that hello3 just looks like a regular html template with dict >> returned from the function. >> >> thanx in advance, lucas >> > --