Thanks!, I knew there was a * in there somewhere!

-Thadeus




On Mon, Sep 21, 2009 at 8:32 AM, Álvaro Justen [Turicas] <
[email protected]> wrote:

>
> On Mon, Sep 21, 2009 at 03:40, Thadeus Burgess
> <[email protected]> wrote:
> > The regex does not work when the filename is in a folder.
> >
> > I am not familiar enough with regex to have it include / as well in the
> > filename.
>
> Just change routes_out:
> routes_out = (
>              ('/myapp/static/(?P<filename>.*)',
>              'http://static.justen.eng.br/\g<filename>'),
> )
> It will catch all characters, for example:
> URL(r=request, c='static', f='foo/bar.baz?query=string')
> will return:
> 'http://static.justen.eng.br/foo/bar.baz?query=string'
>
> --
>  Á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-users" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to