On Sunday, May 1, 2011 8:27:39 PM UTC-4, Alexandre Strzelewicz wrote: > > I tried lot of things and I cant use Parameter Based System + Pattern- > Based System at same time....
No, currently you cannot mix the two systems. However, you might be able to use the pattern-based system to do the subdomain mapping, as the host can be included in the routes_in regular expression (see near the end of this section in the book: http://web2py.com/book/default/chapter/04#Pattern-Based-System). > > How can I do to map controllers and other when I use : > > routers = dict( > BASE = dict( > # default_controller = > 'default', > domains = { > "app1.com" : "app1", > "app2.com" : "app2" > } > ), > ) > ? > > routes_in = (('/login', '/app1/default/user/login')) -> doesn't work. If you've only got one or two pattern-based routes_in like this, maybe just switch to the parameter-based system, and then instead of this routes_in, just create an explicit 'login' action in your default controller to display the login form (so you won't need to do any special routing to get to the login page). Anthony