| |
- UserDict.UserDict
-
- AcceptHeaderDict
-
- AcceptCharsetDict
class AcceptCharsetDict(AcceptHeaderDict) |
|
Special class for Accept-Charset header |
|
- Method resolution order:
- AcceptCharsetDict
- AcceptHeaderDict
- UserDict.UserDict
Methods defined here:
- __init__(self, envKey, env={'TMP': '/home/michael/tmp', 'PYCALIB': '/home/m...e-linux', 'PAGER': 'less', 'LC_COLLATE': 'POSIX'}, defaultValue='utf-8')
- preferred(self)
- Return the value name with highest capability weigth
Data and non-method functions defined here:
- __doc__ = '\n Special class for Accept-Charset header\n '
- __module__ = 'pyweblib.helper'
Methods inherited from AcceptHeaderDict:
- __getitem__(self, value)
- value
String representing the value for which to return
the floating point capability weight.
- items(self)
- Return the accepted values as tuples (value,weigth)
in descending order of capability weight
- keys(self)
- Return the accepted values in descending order of capability weight
Methods inherited from UserDict.UserDict:
- __cmp__(self, dict)
- __contains__(self, key)
- __delitem__(self, key)
- __len__(self)
- __repr__(self)
- __setitem__(self, key, item)
- clear(self)
- copy(self)
- get(self, key, failobj=None)
- has_key(self, key)
- iteritems(self)
- iterkeys(self)
- itervalues(self)
- popitem(self)
- setdefault(self, key, failobj=None)
- update(self, dict)
- values(self)
|
class AcceptHeaderDict(UserDict.UserDict) |
|
This dictionary class is used to parse
Accept-header lines with quality weights.
It's a base class for all Accept-* headers described
in sections 14.1 to 14.5 of RFC2616. |
|
Methods defined here:
- __getitem__(self, value)
- value
String representing the value for which to return
the floating point capability weight.
- __init__(self, envKey, env={'TMP': '/home/michael/tmp', 'PYCALIB': '/home/m...e-linux', 'PAGER': 'less', 'LC_COLLATE': 'POSIX'}, defaultValue=None)
- Parse the Accept-* header line.
httpHeader
string with value of Accept-* header line
- items(self)
- Return the accepted values as tuples (value,weigth)
in descending order of capability weight
- keys(self)
- Return the accepted values in descending order of capability weight
Data and non-method functions defined here:
- __doc__ = '\n This dictionary class is used to parse\n A...ibed\n in sections 14.1 to 14.5 of RFC2616.\n '
- __module__ = 'pyweblib.helper'
Methods inherited from UserDict.UserDict:
- __cmp__(self, dict)
- __contains__(self, key)
- __delitem__(self, key)
- __len__(self)
- __repr__(self)
- __setitem__(self, key, item)
- clear(self)
- copy(self)
- get(self, key, failobj=None)
- has_key(self, key)
- iteritems(self)
- iterkeys(self)
- itervalues(self)
- popitem(self)
- setdefault(self, key, failobj=None)
- update(self, dict)
- values(self)
| |