|
OpenQuizz
Une application de gestion des contenus pédagogiques
|


Public Member Functions | |
| def | __init__ (self, config) |
| def | resolve (self, s) |
| def | ext_convert (self, value) |
| def | cfg_convert (self, value) |
| def | convert (self, value) |
| def | configure_custom (self, config) |
| def | as_tuple (self, value) |
Data Fields | |
| config | |
Static Public Attributes | |
| CONVERT_PATTERN | |
| WORD_PATTERN | |
| DOT_PATTERN | |
| INDEX_PATTERN | |
| DIGIT_PATTERN | |
| value_converters | |
| importer | |
The configurator base class which defines some useful defaults.
| def __init__ | ( | self, | |
| config | |||
| ) |
| def as_tuple | ( | self, | |
| value | |||
| ) |
Utility function which converts lists to tuples.
| def cfg_convert | ( | self, | |
| value | |||
| ) |
Default converter for the cfg:// protocol.
| def configure_custom | ( | self, | |
| config | |||
| ) |
Configure an object with a user-supplied factory.
Reimplemented in Configurator.
| def convert | ( | self, | |
| value | |||
| ) |
Convert values to an appropriate type. dicts, lists and tuples are replaced by their converting alternatives. Strings are checked to see if they have a conversion format and are converted if they do.
| def ext_convert | ( | self, | |
| value | |||
| ) |
Default converter for the ext:// protocol.
| def resolve | ( | self, | |
| s | |||
| ) |
Resolve strings to objects using standard import and attribute syntax.
| config |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |