From 8deae21c801bc05c6464a6eead3df449ed1fe52d Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 5 Sep 2010 23:39:30 +0000 Subject: - 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``). --- repoze/bfg/static.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'repoze/bfg/static.py') 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, -- cgit v1.2.3