On Fri, 2011-06-03 at 11:01 +0100, Chris Withers wrote:
> Hi All,
>
> I had this chunk in a repoze.bfg app:
>
> # static views
> config.add_static_view('static','jobs:static')
> config.add_static_view('favicon.ico',
> 'jobs:static/favicon.ico')
>
> ...which worked fine
That last one may have worked by accident in some early version of BFG,
but, if so, it was unintentional. add_static_view was always meant to
serve up a directory of files from a nonroot subpath.
> , however, in Pyramid 1.0, while /static/favicon.ico
> is served fine, /favicon.ico is not.
If there's a way to make add_static_view serve up a single file from the
root as you spell above (without breaking traversal), it'd be nice to
make it work.
- C
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en.