Re: [web2py] Re: Why would this happen?

2012-06-02 Thread Bruce Wade
This works routers = dict( # base router BASE = dict( default_application = 'welcome', file_match = r'(.*)$',# legal file (path) name ), ) This however did not: routers = dict( # base router BASE = dict( default_application = 'yaw', ), yaw = dict( fil

Re: [web2py] Re: Why would this happen?

2012-06-02 Thread Bruce Wade
Ok thanks I will give it a try. On Sat, Jun 2, 2012 at 8:51 PM, Jonathan Lundell wrote: > On Jun 2, 2012, at 6:32 PM, Ricardo Pedroso wrote: > > > >> FWIW, the parametric router lets you override the regex pattern that's > used for path validation. The default pattern is: > >> > >>file_m

Re: [web2py] Re: Why would this happen?

2012-06-02 Thread Jonathan Lundell
On Jun 2, 2012, at 6:32 PM, Ricardo Pedroso wrote: > >> FWIW, the parametric router lets you override the regex pattern that's used >> for path validation. The default pattern is: >> >>file_match = r'(\w+[-=./]?)+$',# legal file (path) name > > I didn't now about this one, thanks Jo

Re: [web2py] Re: Why would this happen?

2012-06-02 Thread Ricardo Pedroso
On Sun, Jun 3, 2012 at 2:04 AM, Jonathan Lundell wrote: > On Jun 2, 2012, at 5:55 PM, Ricardo Pedroso wrote: >> >> On Sat, Jun 2, 2012 at 4:08 PM, Bruce Wade wrote: >>> Yeah that fixed that one problem >>> >>> I found IF there is a space in the file name it will not work, and if it >>> doesn't us

Re: [web2py] Re: Why would this happen?

2012-06-02 Thread Jonathan Lundell
On Jun 2, 2012, at 5:55 PM, Ricardo Pedroso wrote: > > On Sat, Jun 2, 2012 at 4:08 PM, Bruce Wade wrote: >> Yeah that fixed that one problem >> >> I found IF there is a space in the file name it will not work, and if it >> doesn't use ascii characters as LighDot said it wont work. Do you know wh

Re: [web2py] Re: Why would this happen?

2012-06-02 Thread Ricardo Pedroso
On Sat, Jun 2, 2012 at 4:08 PM, Bruce Wade wrote: > Yeah that fixed that one problem > > I found IF there is a space in the file name it will not work, and if it > doesn't use ascii characters as LighDot said it wont work. Do you know which > part of web2py code handles this or if it is possible t

Re: [web2py] Re: Why would this happen?

2012-06-02 Thread Bruce Wade
Yeah that fixed that one problem I found IF there is a space in the file name it will not work, and if it doesn't use ascii characters as LighDot said it wont work. Do you know which part of web2py code handles this or if it is possible to make it work with Chinese Characters? On Sat, Jun 2, 2012

Re: [web2py] Re: Why would this happen?

2012-06-02 Thread Bruce Wade
Awe, Ok so on my production servers I use nginx to serve all static so this should work? I am not storing the files in the database, the CEO just wants the ability for members to download these files. I guess there is really no way to test this locally using python web2py to start the application.

[web2py] Re: Why would this happen?

2012-06-02 Thread LightDot
Doesn't work when served trough web2py, even if converted to unicode and even if additionally percent-escaped. I see these choices: - serve the file from the same location but directly trough another web server, bypassing web2py altogether (works fine in apache) - if the contract must be served