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 <[email protected]> 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 <[email protected]> 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 <[email protected]> wrote:
>
> > > can you explain in more detailed. what i have to do to change the
> > > routes.py
>
> > > On 6 Jul., 18:11, pk <[email protected]> wrote:
>
> > > > ok thanks but i dont`t find the routes.example.py
> > > > i use a mac
>
> > > > On 6 Jul., 17:55, Jonathan Lundell <[email protected]> wrote:
>
> > > > > On Jul 6, 2009, at 8:50 AM, Fran wrote:
>
> > > > > > On Jul 6, 4:47 pm, pk <[email protected]> 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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to