From 788c424a89907dc8c70bc3b6c7fb531459b6c0c3 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 6 Jan 2009 20:54:02 +0000 Subject: Make this part of the class docstring. --- repoze/bfg/view.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/repoze/bfg/view.py b/repoze/bfg/view.py index 3729fe4e5..abb3997e3 100644 --- a/repoze/bfg/view.py +++ b/repoze/bfg/view.py @@ -130,13 +130,15 @@ class static(object): directory may contain subdirectories (recursively); the static view implementation will descend into these directories as necessary based on the components of the URL in order to resolve a - path into a response.""" - + path into a response + + Pass the absolute filesystem path to the directory containing + static files directory to the constructor as the ``root_dir`` + argument. ``cache_max_age`` influences the Expires and Max-Age + response headers returned by the view (default is 3600 seconds or + five minutes). + """ def __init__(self, root_dir, cache_max_age=3600): - """ Pass the absolute filesystem path to the directory - containing static files directory as ``root_dir``, - ``cache_max_age`` influences the Expires and Max-Age caching - headers (default is 3600 seconds or five minutes).""" self.app = StaticURLParser(root_dir, cache_max_age=cache_max_age) def __call__(self, context, request): -- cgit v1.2.3