P.S. This is a very well established feature. It is just a matter of getting the regex right. I can help you but you may want to read about it in the book. It is well documented.
Massimo On Jul 6, 1:09 pm, pk <peter.kirch...@youngdesigners.de> wrote: > it still doesn`t work > > On 6 Jul., 19:59, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > one more try > > #begin > > 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'),) > > #end > > > On Jul 6, 11:57 am, pk <peter.kirch...@youngdesigners.de> wrote: > > > >http://127.0.0.1:8000/2busy/default/table_as_xml/projectmember > > > if i try this, this works fine > > > but > > > still:http://127.0.0.1:8000/2busy/default/table_as_xml/projectmember.xml > > > throw a ticket > > > > On 6 Jul., 18:54, pk <peter.kirch...@youngdesigners.de> wrote: > > > > > i also get this ticket > > > > Traceback (most recent call last): > > > > File "gluon/restricted.py", line 107, in restricted > > > > File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/ > > > > Resources/applications/2busy/controllers/default.py", line 55, in > > > > <module> > > > > File "gluon/globals.py", line 100, in <lambda> > > > > File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/ > > > > Resources/applications/2busy/controllers/default.py", line 53, in > > > > table_as_xml > > > > File "gluon/sql.py", line 519, in __getitem__ > > > > KeyError: 'projectmember.xml' > > > > > On 6 Jul., 18:49, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > > > > my mistake. try this > > > > > > #begin > > > > > 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'),) > > > > > #end > > > > > > On Jul 6, 11:40 am, pk <peter.kirch...@youngdesigners.de> wrote: > > > > > > > ok but now i get this errormessage > > > > > > Traceback (most recent call last): > > > > > > File "gluon/restricted.py", line 107, in restricted > > > > > > File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/ > > > > > > Resources/applications/2busy/controllers/default.py", line 55, in > > > > > > <module> > > > > > > File "gluon/globals.py", line 100, in <lambda> > > > > > > File "/Applications/web2py/web2py1.64.4/web2py.app/Contents/ > > > > > > Resources/applications/2busy/controllers/default.py", line 53, in > > > > > > table_as_xml > > > > > > File "gluon/sql.py", line 519, in __getitem__ > > > > > > KeyError: 'projectmember.xml' > > > > > > > i have create route.py in the right directory. > > > > > > and copied the code in it, i only changed user into projectmember > > > > > > > On 6 Jul., 18:19, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > > > > > > From a OSX terminal (which you can open from > > > > > > > Application/Utilities) go > > > > > > > into > > > > > > > > web2py.app/Contents/Resources/ > > > > > > > and create and edit route.py. Place this text in it: > > > > > > > > #begin > > > > > > > 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'),) > > > > > > > #end > > > > > > > > that's all. > > > > > > > > On Jul 6, 11:14 am, pk <peter.kirch...@youngdesigners.de> wrote: > > > > > > > > > can you explain in more detailed. what i have to do to change > > > > > > > > the > > > > > > > > routes.py > > > > > > > > > On 6 Jul., 18:11, pk <peter.kirch...@youngdesigners.de> wrote: > > > > > > > > > > ok thanks but i dont`t find the routes.example.py > > > > > > > > > i use a mac > > > > > > > > > > On 6 Jul., 17:55, Jonathan Lundell <jlund...@pobox.com> wrote: > > > > > > > > > > > On Jul 6, 2009, at 8:50 AM, Fran wrote: > > > > > > > > > > > > On Jul 6, 4:47 pm, pk <peter.kirch...@youngdesigners.de> > > > > > > > > > > > wrote: > > > > > > > > > > >> where can i find routes.py? > > > > > > > > > > > > cp web2py\routes.example.py web2py\routes.py > > > > > > > > > > > And section 4.15 of the manual. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---