Request
-
class webob.Request(environ=None, environ_getter=None, charset=(No Default), unicode_errors=(No Default), decode_param_names=(No Default), **kw)
Parses a variety of Accept-* headers.
These headers generally take the form of:
value1; q=0.5, value2; q=0
Where the q parameter is optional. In theory other parameters
exists, but this ignores them.
-
class webob.acceptparse.Accept(header_name, header_value)
Represents a generic Accept-* style header.
This object should not be modified. To add items you can use
accept_obj + 'accept_thing' to get a new object
-
class webob.acceptparse.MIMEAccept(header_name, header_value)
Represents the Accept header, which is a list of mimetypes.
This class knows about mime wildcards, like image/*
-
class webob.byterange.Range(ranges)
Represents the Range header.
This only represents bytes ranges, which are the only kind
specified in HTTP. This can represent multiple sets of ranges,
but no place else is this multi-range facility supported.
Represents the Cache-Control header
-
class webob.cachecontrol.CacheControl(properties, type)
Represents the Cache-Control header.
By giving a type of 'request' or 'response' you can
control what attributes are allowed (some Cache-Control values
only apply to requests or responses).
Contains some data structures.
An object that represents the headers as present in a
WSGI environment.
This object is a wrapper (with no internal state) for a WSGI
request object, representing the CGI-style HTTP_* keys as a
dictionary. Because a CGI environment can only hold one value for
each key, this dictionary is single-valued (unlike outgoing
headers).
Does parsing of ETag-related headers: If-None-Matches, If-Matches
Also If-Range parsing
-
class webob.etag.ETagMatcher(etags, weak_etags=())
- Represents an ETag request. Supports containment to see if an
ETag matches. You can also use
etag_matcher.weak_contains(etag) to allow weak ETags to match
(allowable for conditional GET requests, but not ranges or other
methods).
-
class webob.etag.IfRange(etag=None, date=None)
- Parses and represents the If-Range header, which can be
an ETag or a date
Misc Functions
-
webob.html_escape(s)
HTML-escape a string or object
This converts any non-string objects passed into it to strings
(actually, using unicode()). All values returned are
non-unicode strings (using &#num; entities for all non-ASCII
characters).
None is treated specially, and returns the empty string.
System Message: WARNING/2 (/build/buildd/python-webob-0.9.4/docs/modules/webob.txt, line 50)
error while formatting signature for webob.day: arg is not a Python function
-
class webob.day
- Difference between two datetime values.
System Message: WARNING/2 (/build/buildd/python-webob-0.9.4/docs/modules/webob.txt, line 51)
error while formatting signature for webob.week: arg is not a Python function
-
class webob.week
- Difference between two datetime values.
System Message: WARNING/2 (/build/buildd/python-webob-0.9.4/docs/modules/webob.txt, line 52)
error while formatting signature for webob.hour: arg is not a Python function
-
class webob.hour
- Difference between two datetime values.
System Message: WARNING/2 (/build/buildd/python-webob-0.9.4/docs/modules/webob.txt, line 53)
error while formatting signature for webob.minute: arg is not a Python function
-
class webob.minute
- Difference between two datetime values.
System Message: WARNING/2 (/build/buildd/python-webob-0.9.4/docs/modules/webob.txt, line 54)
error while formatting signature for webob.second: arg is not a Python function
-
class webob.second
- Difference between two datetime values.
System Message: WARNING/2 (/build/buildd/python-webob-0.9.4/docs/modules/webob.txt, line 55)
error while formatting signature for webob.month: arg is not a Python function
-
class webob.month
- Difference between two datetime values.
System Message: WARNING/2 (/build/buildd/python-webob-0.9.4/docs/modules/webob.txt, line 56)
error while formatting signature for webob.year: arg is not a Python function
-
class webob.year
- Difference between two datetime values.
-
class webob.AppIterRange(app_iter, start, stop)
- Wraps an app_iter, returning just a range of bytes
Gives a multi-value dictionary object (MultiDict) plus several wrappers
-
class webob.multidict.MultiDict(*args, **kw)
- An ordered dictionary that can have multiple values for each key.
Adds the methods getall, getone, mixed, and add to the normal
dictionary interface.
-
class webob.multidict.UnicodeMultiDict(multi=None, encoding=None, errors='strict', decode_keys=False)
A MultiDict wrapper that decodes returned values to unicode on the
fly. Decoding is not applied to assigned values.
The key/value contents are assumed to be str/strs or
str/FieldStorages (as is returned by the paste.request.parse_
functions).
Can optionally also decode keys when the decode_keys argument is
True.
FieldStorage instances are cloned, and the clone’s filename
variable is decoded. Its name variable is decoded when decode_keys
is enabled.
-
class webob.multidict.NestedMultiDict(*dicts)
- Wraps several MultiDict objects, treating it as one large MultiDict
-
class webob.multidict.NoVars(reason=None)
Represents no variables; used when no variables
are applicable.
This is read-only
Dict that has a callback on all updates
System Message: WARNING/2 (/build/buildd/python-webob-0.9.4/docs/modules/webob.txt, line 67)
error while formatting signature for webob.updatedict.UpdateDict: arg is not a Python function
-
class webob.updatedict.UpdateDict