No. This code is dangerous because does not always work. It only work for simple mappings that do not use regex and domainname.
On Apr 24, 1:51 am, Álvaro Justen [Turicas] <[email protected]> wrote: > On Fri, Apr 10, 2009 at 10:28 AM, mdipierro <[email protected]> wrote: > > Good point! I can add this. > > > Massimo > > > On Apr 10, 3:13 am, Álvaro Justen [Turicas] <[email protected]> > > wrote: > >> Hi, > >> I want a manner to get full GET URL from client, but using a rewrite > >> in routes_in I can get only a half of. An example: > > >> routes_in = ( > >> ('/(?P<all>.+)', '/myapp/default/padrao?\g<all>'), > >> ) > > >> In this case I can get 'full' URL (I say 'full' because I don't get > >> "http://127.0.0.1:800") with request.env.query_string. But in cases > >> that I have: > > >> routes_in = ( > >> ('/(A|B)(?P<all>.+)', '/myapp/default/padrao?\g<all>'), > >> ) > > >> I can't get "A" or "B", only the expression matched by "(?P<all>.+)". > >> Is there an way to get "full" URL that I like - am I missing something? > >> If there isn't, can it be implemented to future versions? > > >> Thanks. > > Will this be added? > > -- > Álvaro Justen > Peta5 - Telecomunicações e Software Livre > 21 3021-6001 / 9898-0141 > http://www.peta5.com.br/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

