summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-11-21 21:45:06 +0000
committerChris McDonough <chrism@agendaless.com>2009-11-21 21:45:06 +0000
commit8f6ded6569c7393559005d49ceb0eb15701992b5 (patch)
treee3b04ada22bf0b49e8c44dd490674e2dc46c1a33
parentd8a97c91e41041536c52910dc6f641fe49e5283f (diff)
downloadpyramid-8f6ded6569c7393559005d49ceb0eb15701992b5.tar.gz
pyramid-8f6ded6569c7393559005d49ceb0eb15701992b5.tar.bz2
pyramid-8f6ded6569c7393559005d49ceb0eb15701992b5.zip
Name.
-rw-r--r--repoze/bfg/zcml.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/repoze/bfg/zcml.py b/repoze/bfg/zcml.py
index 77ac4c8fa..2359c86dc 100644
--- a/repoze/bfg/zcml.py
+++ b/repoze/bfg/zcml.py
@@ -478,14 +478,14 @@ class IStaticDirective(Interface):
def static(_context, name, path, cache_max_age=3600):
""" Handle ``static`` ZCML directives
"""
- abspath = _context.path(path)
+ path = _context.path(path)
reg = get_current_registry()
config = Configurator(reg)
_context.action(
discriminator = ('route', name, False, None, None, None, None, None),
callable=config.static,
- args = (name, abspath, cache_max_age, _context.info),
+ args = (name, path, cache_max_age, _context.info),
)
_context.action(