Not sure if this is related; apologies if not.
I have web2py/routes.py containing
"""
routes_in = (
('/favicon.ico', '/init/static/favicon.ico'),
('/robots.txt', '/init/static/robots.txt'),
)
routes_out = ()
"""
and app.yaml containing
"""
- url: /(?P<a>.+?)/static/(?P<b>.+)
static_files: applications/\1/static/\2
upload: applications/(.+?)/static/(.+)
secure: optional
expiration: "90d"
"""
GAE Launcher at startup is saying:
WARNING 2010-09-15 21:43:18,429 dev_appserver.py:1175] Blocking
access to static file "/Users/mellis/web2py/applications/init/static/
favicon.ico"
and thereafter issuing 403's for attempts to get favicon.ico.
What else do I need to do? I'm still using version 184.0.
Thanks,
Mike
On Sep 15, 9:25 am, mdipierro <[email protected]> wrote:
> please check trunk in 5 minutes.
>
> On Sep 14, 9:56 am, Jonathan Lundell <[email protected]> wrote:
>
>
>
> > Massimo, here's a patch. In rewrite.py, change this:
>
> > exec routesfp.read() in symbols
>
> > to this:
>
> > exec routesfp.read().translate(None, '\r') in symbols
>
> > (and test)
>
> > I notice that there's something like this elsewhere:
>
> > def compile2(code,layer):
> > """
> > The +'\n' is necessary else compile fails when code ends in a comment.
> > """
> > return compile(code.rstrip().replace('\r\n','\n')+'\n', layer, 'exec')
>
> > ...though in the case of the rewrite exec call, there doesn't seem to be a
> > need for a terminal newline, even if I put a comment on the last line.