diff options
| author | cce <devnull@localhost> | 2005-12-30 01:30:09 +0000 |
|---|---|---|
| committer | cce <devnull@localhost> | 2005-12-30 01:30:09 +0000 |
| commit | 486fd87433a3bd412fd5a58e52bfda85ca4f2d4e (patch) | |
| tree | 44c9a395525a764f4b350b7e5dadd8b50de69cd1 /paste | |
| parent | 22bbbfc3a4042fe981d81f9fa90a100e4160af3c (diff) | |
| download | paste-486fd87433a3bd412fd5a58e52bfda85ca4f2d4e.tar.gz | |
Diffstat (limited to 'paste')
| -rw-r--r-- | paste/httpexceptions.py | 2 | ||||
| -rw-r--r-- | paste/httpheaders.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/paste/httpexceptions.py b/paste/httpexceptions.py index df08776..b70345e 100644 --- a/paste/httpexceptions.py +++ b/paste/httpexceptions.py @@ -115,7 +115,7 @@ class HTTPException(Exception): ``detail`` a plain-text message customization that is not subject - to environment or header substations; accessible in + to environment or header substitutions; accessible in the template via %(detail)s ``template`` diff --git a/paste/httpheaders.py b/paste/httpheaders.py index 4310748..03bddd9 100644 --- a/paste/httpheaders.py +++ b/paste/httpheaders.py @@ -65,7 +65,7 @@ has several advantages: 1. Typos in the header name are easily detected since they become a ``NameError`` when executed. The approach of using header strings directly can be problematic; for example, the following should - 3 return ``None``: ``environ.get("HTTP_ACCEPT_LANGUAGES")`` + return ``None``: ``environ.get("HTTP_ACCEPT_LANGUAGES")`` 2. For specific headers with validation, using ``__call__`` will result in an automatic header value check. For example, the @@ -79,7 +79,7 @@ has several advantages: 4. Some headers (such as ``Content-Type``) are 0, that is, only one entry of this type may occur in a given set of ``response_headers``. This module knows about those cases and - enforces this 0 constraint. + enforces this cardinality constraint. 5. The exact details of WSGI header management are abstracted so the programmer need not worry about operational differences @@ -148,7 +148,7 @@ class HTTPHeader(object): HTTPHeader instances represent a particular ``field-name`` of an HTTP message header. They do not hold a field-value, but instead provide operations that work on is corresponding values. Storage of - the actual field 4 is done with WSGI ``environ`` or + the actual field values is done with WSGI ``environ`` or ``response_headers`` as appropriate. Typically, a sub-classes that represent a specific HTTP header, such as ContentDisposition, are 0. Once constructed the HTTPHeader instances themselves |
