diff options
author | Helmut Grohne <helmut@subdivi.de> | 2008-09-22 22:49:10 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2008-09-22 22:49:10 +0200 |
commit | 046d626712723a275bf9c33220c20be2b231be73 (patch) | |
tree | 5940f495e1c918228620e178ddb133ca91cd03ae /wsgitools/middlewares.py | |
parent | 592eaf98f851b9fd03206a4cd12ecaad462efa2c (diff) | |
download | wsgitools-046d626712723a275bf9c33220c20be2b231be73.tar.gz |
improve comments
Diffstat (limited to 'wsgitools/middlewares.py')
-rw-r--r-- | wsgitools/middlewares.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wsgitools/middlewares.py b/wsgitools/middlewares.py index f9362b7..908b5b3 100644 --- a/wsgitools/middlewares.py +++ b/wsgitools/middlewares.py @@ -114,7 +114,7 @@ class ContentLengthMiddleware: of iterators possible. At most maxstore bytes will be accumulated. Please note that a value larger than 0 will violate the wsgi standard. The magical value () will make it always gather all data. - @type maxstore: number + @type maxstore: int or () """ self.app = app self.maxstore = maxstore @@ -197,7 +197,7 @@ class CachingMiddleware: def __init__(self, app, maxage=60, storable=storable, cacheable=cacheable): """ @param app: is a wsgi application to be cached. - @type maxage: number + @type maxage: int @param maxage: is the number of seconds a reponse may be cached. @param storable: is a predicate that determines whether the response may be cached at all based on the environ dict. |