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

Public Member Functions

def __init__ (self, map, *items)
 
- Public Member Functions inherited from BaseConverter
def __init__ (self, map)
 
def to_python (self, value)
 
def to_url (self, value)
 

Data Fields

 regex
 
- Data Fields inherited from BaseConverter
 map
 

Additional Inherited Members

- Static Public Attributes inherited from BaseConverter
 regex
 
 weight
 

Detailed Description

Matches one of the items provided.  Items can either be Python
identifiers or strings::

    Rule('/<any(about, help, imprint, class, "foo,bar"):page_name>')

:param map: the :class:`Map`.
:param items: this function accepts the possible items as positional
              arguments.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  map,
items 
)

Field Documentation

◆ regex

regex

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