diff options
| author | Chris McDonough <chrism@agendaless.com> | 2010-09-05 23:39:30 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2010-09-05 23:39:30 +0000 |
| commit | 8deae21c801bc05c6464a6eead3df449ed1fe52d (patch) | |
| tree | 821fc7224a8764373a16be5e6ea59872e8a2d333 /repoze/bfg/static.py | |
| parent | d3c39db1c24a603dff710f1f187d435acf6a6752 (diff) | |
| download | pyramid-8deae21c801bc05c6464a6eead3df449ed1fe52d.tar.gz pyramid-8deae21c801bc05c6464a6eead3df449ed1fe52d.tar.bz2 pyramid-8deae21c801bc05c6464a6eead3df449ed1fe52d.zip | |
- The route pattern registered internally for a a local "static view"
(either via the ``static`` ZCML directive or via the
``add_static_view`` method of the configurator) was incorrect. It
was regsistered for e.g. ``static*traverse``, while it should have
been registered for ``static/*traverse``. Symptom: two static views
could not reliably be added to a system when they both shared the
same path prefix (e.g. ``/static`` and ``/static2``).
Diffstat (limited to 'repoze/bfg/static.py')
| -rw-r--r-- | repoze/bfg/static.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/repoze/bfg/static.py b/repoze/bfg/static.py index 36a855dfb..5effd4e4b 100644 --- a/repoze/bfg/static.py +++ b/repoze/bfg/static.py @@ -126,7 +126,7 @@ class StaticURLInfo(object): # register a route using this view self.config.add_route( name, - "%s*subpath" % name, + "%s/*subpath" % name, view=view, view_for=self.__class__, factory=lambda *x: self, |
