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/tests/test_static.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'repoze/bfg/tests/test_static.py') diff --git a/repoze/bfg/tests/test_static.py b/repoze/bfg/tests/test_static.py index 508db0d90..d9893ab2f 100644 --- a/repoze/bfg/tests/test_static.py +++ b/repoze/bfg/tests/test_static.py @@ -311,7 +311,7 @@ class TestStaticURLInfo(unittest.TestCase): inst.add('view', 'anotherpackage:path', cache_max_age=1) expected = [('view', 'anotherpackage:path', False)] self.assertEqual(inst.registrations, expected) - self.assertEqual(config.arg, ('view', 'view*subpath')) + self.assertEqual(config.arg, ('view', 'view/*subpath')) self.assertEqual(config.kw['_info'], None) self.assertEqual(config.kw['view_for'], self._getTargetClass()) self.assertEqual(config.kw['factory'](), inst) -- cgit v1.2.3