Modes structure

class cz_urnnbn_api.api_structures.modes.Modes(by_resolver=False, by_registrar=False, by_reservation=False)

Bases: object

Container holding informations about modes which may be used by registrar to register documents.

by_resolver

bool – True if the mode can be used.

by_registrar

bool – True if the mode can be used.

by_reservation

bool – True if the mode can be used.

static from_xmldict(modes_tag)

Parse Modes information from XML.

Parameters:modes_tags (obj) – OrderedDict <modes> tag returned from xmltodict.
Returns:Modes instance.
Return type:obj