If you don't need to use the pattern-based rewrite system, you can use the 
parameter-based rewrite system to customize the legal characters allowed in 
static file names. Just create a routes.py file in the root /web2py folder 
and include the following:

routers = dict(
    BASE=dict(
        file_match = r'([ -+=@$%\w]|(?<=[ -+=@$%\w])[./])*$'
    )
)

Note, the default value of file_match is:

r'([-+=@$%\w]|(?<=[-+=@$%\w])[./])*$'

My code simply adds spaces to the regex.

Anthony

On Wednesday, December 9, 2015 at 9:08:19 AM UTC-5, Jaime Sempere wrote:
>
> Yes, that's my problem the web2py server looks like he is not able to 
> handle spaces on static paths to access those files... any other advice?
>
>
> El miércoles, 9 de diciembre de 2015, 14:31:36 (UTC+1), Anthony escribió:
>>
>> Are you serving web2py via the built-in server? If not, you can configure 
>> your web server (e.g., nginx or Apache) to server static files directly.
>>
>> Anthony
>>
>>>
>>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to