Back to index

moin  1.9.0~rc2
Public Member Functions
MoinMoin.support.werkzeug.wrappers.AcceptMixin Class Reference
Inheritance diagram for MoinMoin.support.werkzeug.wrappers.AcceptMixin:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def accept_mimetypes
def accept_charsets
def accept_encodings
def accept_languages

Detailed Description

A mixin for classes with an :attr:`~BaseResponse.environ` attribute to
get all the HTTP accept headers as :class:`Accept` objects (or subclasses
thereof).

Definition at line 720 of file wrappers.py.


Member Function Documentation

List of charsets this client supports as :class:`CharsetAccept`
object.

Definition at line 734 of file wrappers.py.

00734 
00735     def accept_charsets(self):
00736         """List of charsets this client supports as :class:`CharsetAccept`
00737         object.
00738         """
00739         return parse_accept_header(self.environ.get('HTTP_ACCEPT_CHARSET'),
00740                                    CharsetAccept)

Here is the call graph for this function:

List of encodings this client accepts.  Encodings in a HTTP term
are compression encodings such as gzip.  For charsets have a look at
:attr:`accept_charset`.

Definition at line 742 of file wrappers.py.

00742 
00743     def accept_encodings(self):
00744         """List of encodings this client accepts.  Encodings in a HTTP term
00745         are compression encodings such as gzip.  For charsets have a look at
00746         :attr:`accept_charset`.
00747         """
00748         return parse_accept_header(self.environ.get('HTTP_ACCEPT_ENCODING'))

Here is the call graph for this function:

List of languages this client accepts as :class:`LanguageAccept`
object.

.. versionchanged 0.5
   In previous versions this was a regualr :class:`Accept` object.

Definition at line 750 of file wrappers.py.

00750 
00751     def accept_languages(self):
00752         """List of languages this client accepts as :class:`LanguageAccept`
00753         object.
00754 
00755         .. versionchanged 0.5
00756            In previous versions this was a regualr :class:`Accept` object.
00757         """
00758         return parse_accept_header(self.environ.get('HTTP_ACCEPT_LANGUAGE'),
00759                                    LanguageAccept)
00760 

Here is the call graph for this function:

List of mimetypes this client supports as :class:`MIMEAccept`
object.

Definition at line 727 of file wrappers.py.

00727 
00728     def accept_mimetypes(self):
00729         """List of mimetypes this client supports as :class:`MIMEAccept`
00730         object.
00731         """
00732         return parse_accept_header(self.environ.get('HTTP_ACCEPT'), MIMEAccept)

Here is the call graph for this function:


The documentation for this class was generated from the following file: