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

Public Member Functions

def __init__ (self, map, minlength=1, maxlength=None, length=None)
 
- 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

This converter is the default converter and accepts any string but
only one path segment.  Thus the string can not include a slash.

This is the default validator.

Example::

    Rule('/pages/<page>'),
    Rule('/<string(length=2):lang_code>')

:param map: the :class:`Map`.
:param minlength: the minimum length of the string.  Must be greater
                  or equal 1.
:param maxlength: the maximum length of the string.
:param length: the exact length of the string.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  map,
  minlength = 1,
  maxlength = None,
  length = None 
)

Field Documentation

◆ regex

regex

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