OpenQuizz
Une application de gestion des contenus pédagogiques
MIMEAccept Class Reference
Inheritance diagram for MIMEAccept:
Collaboration diagram for MIMEAccept:

Public Member Functions

def accept_html (self)
 
def accept_xhtml (self)
 
def accept_json (self)
 
- Public Member Functions inherited from Accept
def __init__ (self, values=())
 
def __getitem__ (self, key)
 
def quality (self, key)
 
def __contains__ (self, value)
 
def __repr__ (self)
 
def index (self, key)
 
def find (self, key)
 
def values (self)
 
def to_header (self)
 
def __str__ (self)
 
def best_match (self, matches, default=None)
 
def best (self)
 
- Public Member Functions inherited from ImmutableListMixin
def __hash__ (self)
 
def __reduce_ex__ (self, protocol)
 
def __delitem__ (self, key)
 
def __iadd__ (self, other)
 
def __setitem__ (self, key, value)
 
def append (self, item)
 
def extend (self, iterable)
 
def insert (self, pos, value)
 
def pop (self, index=-1)
 
def reverse (self)
 
def sort (self, cmp=None, key=None, reverse=None)
 

Additional Inherited Members

- Data Fields inherited from Accept
 provided
 
- Static Public Attributes inherited from ImmutableListMixin
 remove
 

Detailed Description

Like :class:`Accept` but with special methods and behavior for
mimetypes.

Member Function Documentation

◆ accept_html()

def accept_html (   self)
True if this object accepts HTML.

◆ accept_json()

def accept_json (   self)
True if this object accepts JSON.

◆ accept_xhtml()

def accept_xhtml (   self)
True if this object accepts XHTML.

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