Re: [web2py] ¿How to hide app, controller and function from url?

2014-07-15 Thread Lisandro Rostagno
Thank you very much for the help! I finally decided to keep using parameter-based rewrite setup, as it's easier for me to understand, and it allows me to achieve what I need. So I'm using "index" as the default function, that renders the index.html if there is no arg (that is, the home page of my

Re: [web2py] ¿How to hide app, controller and function from url?

2014-07-15 Thread Anthony
> > However now, I can only access home page through /index but not through / ¿Is this possible to achieve? > You can only have one default function per controller, so for something like that, you would probably need a more complex pattern-based rewrite setup. > ¿Or should I change default_

Re: [web2py] ¿How to hide app, controller and function from url?

2014-07-15 Thread Lisandro Rostagno
Thanks! It worked. Every day I get even more surprised about web2py features :) I have though one more doubt. In my case, I put this on routes.py: BASE = dict(\ default_application = 'init', \ default_controller = 'default', \ default_function = 'store', \ functions = ['index', 'contact'])

Re: [web2py] ¿How to hide app, controller and function from url?

2014-07-13 Thread Anthony
Use the parameter-based router: BASE = dict( default_application = 'init', default_controller = 'default', default_function = 'index', functions = ['list', 'of', 'functions', 'in', 'default', 'controller'] ) If you want to exclude the default function in cases where there are

Re: [web2py] ¿How to hide app, controller and function from url?

2014-07-13 Thread Lisandro Rostagno
Thanks for the answer. I should've clarified that I knew that I had to use routes, but I'm having difficult to find the regular expression that works for this case. I suppose I have to use pattern based system, because in addition, I still want to handle "init" as the default application, "default"

Re: [web2py] ¿How to hide app, controller and function from url?

2014-07-12 Thread Vinicius Assef
You can use routes. On Sat, Jul 12, 2014 at 9:17 AM, Lisandro wrote: > I'm quite a novice regarding to regular expresions, and I'm stuck with this > idea: I want to hide appname, controller and function from specific url, > lletting visible only the arguments of the url. > > For example, for this

[web2py] ¿How to hide app, controller and function from url?

2014-07-12 Thread Lisandro
I'm quite a novice regarding to regular expresions, and I'm stuck with this idea: I want to hide *appname, controller and function* from specific url, lletting visible only the arguments of the url. For example, for this url: http://mydomain.com/init/default/store/erbalito should look like this