In routes.py you can do

routes_in=(('/myapp/default/table_as_xml/user.html','/myapp/default/
table_as_xml.xml/user'),)
routes_out=(('/myapp/default/table_as_xml.html/user','/myapp/default/
table_as_xml/user.html'),)


On Jul 6, 10:30 am, pk <peter.kirch...@youngdesigners.de> wrote:
> i need this url, when i use httpservice in flex
>
> On 6 Jul., 15:55, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > You can call but it ugly.
>
> >http://www.test.com/myapp/default/table_as_xml.xml/user
>
> > I suggest
>
> > 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.vars.id].id>0).select().as_list())
>
> > and
>
> >  http://www.test.com/myapp/default/table_as_xml.xml?id=1
>
> > On Jul 6, 5:10 am, pk <peter.kirch...@youngdesigners.de> wrote:
>
> > > 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 
> > > likehttp://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 web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to