hi together,
i have a function:
def table_as_xml():
from gluon.serializers import xml
response.headers['Content-Type']='text/xml'
return '''<?xml version="1.0" encoding="UTF-8"?>
'''+"<itemlist>%s</itemlist>" % xml(db(db[request.args
(0)].id>0).select().as_list())
ok this works fine. but how can i create the weblink with .xml
now i can only read the xml like
http://www.test.com/myapp/default/table_as_xml/user
and now i want the same but with the end .xml
thanks for your help
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---