diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-01-06 20:54:02 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-01-06 20:54:02 +0000 |
| commit | 788c424a89907dc8c70bc3b6c7fb531459b6c0c3 (patch) | |
| tree | 34709905e46b4f8bc62f9af11260853ac7589630 /repoze | |
| parent | d20d094da95456e7939f9e77cc51f71d2d4561db (diff) | |
| download | pyramid-788c424a89907dc8c70bc3b6c7fb531459b6c0c3.tar.gz pyramid-788c424a89907dc8c70bc3b6c7fb531459b6c0c3.tar.bz2 pyramid-788c424a89907dc8c70bc3b6c7fb531459b6c0c3.zip | |
Make this part of the class docstring.
Diffstat (limited to 'repoze')
| -rw-r--r-- | repoze/bfg/view.py | 14 |
1 files 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): |
