From 3d1abbd5be1d1bc0f27e488059ccf7aaca225f31 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 25 Aug 2009 01:30:40 +0000 Subject: - The ``repoze.bfg.view.static`` class now accepts a string as its first argument ("root_dir") that represents a package-relative name e.g. ``somepackage:foo/bar/static``. This is now the preferred mechanism for spelling package-relative static paths using this class. A ``package_name`` keyword argument has been left around for backwards compatibility. If it is supplied, it will be honored. - Fixed documentation for ``repoze.bfg.view.static`` (in narrative ``Views`` chapter). --- repoze/bfg/zcml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'repoze/bfg/zcml.py') diff --git a/repoze/bfg/zcml.py b/repoze/bfg/zcml.py index e38fd3449..e0c8d2e8e 100644 --- a/repoze/bfg/zcml.py +++ b/repoze/bfg/zcml.py @@ -354,7 +354,7 @@ class IStaticDirective(Interface): required=True) cache_max_age = Int( - title=u"Cache maximum age", + title=u"Cache maximum age in seconds", required=False, default=None) -- cgit v1.2.3