I solved it this way:

response.menu=[
['Faktúry',False,t2.action('../invoices/browse')],
['Tovar',False,t2.action('../ware/browse')],
['Dodávatelia',False,t2.action('../supplier/browse')],
['Odberatelia',False,t2.action('../customer/browse')]]

By using complete paths for menus I avoided prepending "default" to
links.
Application default page doesn't show "default" in the address bar and
by clicking the menu I take control and keep it out of "default" branch


On St, 2009-01-07 at 18:54 -0800, mdipierro wrote:
> You need to use routes_in and routes_out there are examples in
> routes.examples.py
> 
> On Jan 7, 2:54 pm, Julius Minka <j...@minka.sk> wrote:
> > I have got following in controllers/default.py:
> >
> > response.menu=[
> > ['Tovar',False,t2.action('browse')],
> > ['Odberatelia',False,t2.action('temp')]]
> >
> > def index():
> >    return dict()
> >
> > when I go tohttp://127.0.0.1:8000/my_app/
> > it displays page   views/default/index.html
> > and in this page, it inserts "default/" at the beginning of menu item
> > links:http://127.0.0.1:8000/my_app/default/browse
> >
> > I understand that web2py maps the path from controller to path in the
> > view.
> >
> > My application otherwise works fine with following 
> > paths:http://127.0.0.1:8000/my_app/browsehttp://127.0.0.1:8000/my_app/modify/1http://127.0.0.1:8000/my_app/create
> > ...
> >
> > It seems all other application I can see (admin,examples,puppy,cookbook)
> > work with "default".
> >
> > How to make application default page to be without that "default" in the
> > path? I tried to use html redirect but it began to cycle.
> >
> > Thanks.
> > Julius
> > 


--~--~---------~--~----~------------~-------~--~----~
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