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
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
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
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
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
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
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
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.
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
9 matches
Mail list logo