On 6 Jan 2014, at 1:55 PM, galoshes wrote:
> Hello, I would like to revive this older thread (which also relates to this
> one:https://groups.google.com/forum/#!topic/web2py/ff1syTIl12o).
>
> I'm new to web2py, and so far have been finding my way around ok (thanks to
> the excellent docs), but
That worked very very well!
I created a file in /models (rewrite.py)
*routes = {
> **"default": "default",
> **"articles": "articles",
> **"inicio": "default",
> **"artigos": "articles",
> **"principal": "default",
> **"articulos: "articles",
> **}**
> **
> **request.contr
On Nov 13, 2011, at 3:38 PM, Bruno Rocha wrote:
> I am going to test the trick in models. it is useful to create /username
> services.
>
>
The reason this works (if it works) is that the existing dispatch code runs the
models before it looks at request.controller to choose the controller. So
I am going to test the trick in models. it is useful to create /username
services.
http://zerp.ly/rochacbruno
Em 13/11/2011 17:21, "Jonathan Lundell" escreveu:
> On Nov 13, 2011, at 11:07 AM, Bruno Rocha wrote:
>
> > Here's an alternative, though. I think it might work. In your
> controller, do
On Nov 13, 2011, at 11:07 AM, Bruno Rocha wrote:
> > Here's an alternative, though. I think it might work. In your controller,
> > do something like this:
> >
> > def articles():
> >whatever
> >
> > artigos = articles
> > articulos = articles
> > artiklid = articles
> >
>
> it does not works
http://zerp.ly/rochacbruno
Em 13/11/2011 13:49, "Jonathan Lundell" escreveu:
>
> On Nov 13, 2011, at 2:16 AM, Bruno Rocha wrote:
>
> > I just tested this:
> >
> > routes_in = (
> > ('/(?Partigos|articulos|artiklid)', '/myapp/default/articles'),
> > )
> > routes_out = (
> > ('/myapp/default/art
On Nov 13, 2011, at 2:16 AM, Bruno Rocha wrote:
> I just tested this:
>
> routes_in = (
> ('/(?Partigos|articulos|artiklid)', '/myapp/default/articles'),
> )
> routes_out = (
> ('/myapp/default/articles', '/(?Partigos|articulos|artiklid)'),
> )
>
>
> it works, but I can't receive args and v
7 matches
Mail list logo