In short, no. What you can do is configure the route for the profile controller first: routes_in=( ('/profile/(?P<stuff>.*)', '/profile/\g<stuff>'), )And after that you can put the on in for main: routes_in=( ('/profile/(?P<stuff>.*)', '/init/profile/\g<stuff>'), ('/(?P<stuff>.*)', '/init/main/\g<stuff>'), )This would serve to a similar effect. If you go to /profile/entry it would be re-routed to /init/profile/entry but /profile would be routed to /init/main/profile. -tim ceej wrote: Hi there,In my routes I have routes_in=( ('/admin(?P<stuff>.*)', '/admin\g<stuff>'), ('/my_app/(?P<stuff>.+)', '/my_app/\g<stuff>'), ('^.*:/$', '/my_app/main/index'), ('/(?P<stuff>.+)', '/my_app/\g<stuff>'), ) routes_out=( ('/admin(?P<stuff>.*)', '/admin\g<stuff>'), ('/my_app/(?P<stuff>.+)', '/\g<stuff>'), ) Which makes my URLS like mydomain.com/<controller> Is know it's possible to make a default controller say main.py my root URL so i would type mydomain.com and it would display the main.py index and say if I typed mydomain.com/profile it would pull the function 'profile' from main.py. But then if i decided i wanted to make profile it's own controller and then went to mydomain.com/profile i would then want it to be pulling from profile.py function index. Is there away to make the route code about first look in main.py but if there is a controller with that name override it? Many thanks in advance :) --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~--- |
begin:vcard fn:Timothy Farrell n:Farrell;Timothy org:Statewide General Insurance Agency;IT adr:;;4501 East 31st Street;Tulsa;OK;74135;US email;internet:[EMAIL PROTECTED] title:Computer Guy tel;work:(918)492-1446 url:www.swgen.com version:2.1 end:vcard