univention.admin.handlers.test package
Contents
univention.admin.handlers.test package¶
Submodules¶
univention.admin.handlers.test.ip_phone module¶
- class univention.admin.handlers.test.ip_phone.SynVoIP_Protocols[source]¶
Bases:
univention.admin.syntax.select
This class defines a new syntax for a selection list of VoIP protocols
- name = 'VoIP_Protocol'¶
- choices = [('sip', 'SIP'), ('h323', 'H.323'), ('skype', 'Skype')]¶
- class univention.admin.handlers.test.ip_phone.SynVoIP_Address[source]¶
Bases:
univention.admin.syntax.simple
This class serves as syntax for a VoIP address. The structure is similar to an e-mail address, but may contain a scheme followed by a “:” as a prefix. Valid schemes are: sip, h323 and skype
- name = 'VoIP_Address'¶
- min_length = 4¶
- max_length = 256¶
- parse(text)[source]¶
Validate the value by parsing it.
- Returns
the parsed textual value.
- Raises
univention.admin.uexceptions.valueError – if the value is invalid.
- class univention.admin.handlers.test.ip_phone.object(co, lo, position, dn='', superordinate=None, attributes=None)[source]¶
Bases:
univention.admin.handlers.simpleLdap
This object assists the Univention Directory Manager in LDAP operations that relate to this module. The base class univention.admin.handlers.simpleLdap implements the complete communication via LDAP, so that only the adjustments for this special LDAP object have to be implemented here. For this purpose, the base class offers one function each to make adjustments before and after an LDAP operation. In this example class the prototypes of all these functions are defined to give an overview of the possibilities.
- module = 'test/ip_phone'¶