tldap.fields

LDAP field types.

class tldap.fields.BinaryField(max_instances=1, required=False)[source]

Field contains a binary value that can not be interpreted in anyway.

value_to_db(value)[source]

returns field’s single value prepared for saving into a database.

value_to_python(value)[source]

Converts the input single value into the expected Python data type, raising django.core.exceptions.ValidationError if the data can’t be converted. Returns the converted value. Subclasses should override this.

value_validate(value)[source]

Validates value and throws ValidationError. Subclasses should override this to provide validation logic.

class tldap.fields.CharField(max_instances=1, required=False)[source]

Field contains a UTF8 character string.

value_to_db(value)[source]

returns field’s single value prepared for saving into a database.

value_to_python(value)[source]

Converts the input single value into the expected Python data type, raising django.core.exceptions.ValidationError if the data can’t be converted. Returns the converted value. Subclasses should override this.

value_validate(value)[source]

Validates value and throws ValidationError. Subclasses should override this to provide validation logic.

class tldap.fields.DaysSinceEpochField(max_instances=1, required=False)[source]

Field is an integer containing number of days since epoch.

value_to_db(value)[source]

returns field’s single value prepared for saving into a database.

value_to_python(value)[source]

Converts the input single value into the expected Python data type, raising django.core.exceptions.ValidationError if the data can’t be converted. Returns the converted value. Subclasses should override this.

value_validate(value)[source]

Converts the input single value into the expected Python data type, raising django.core.exceptions.ValidationError if the data can’t be converted. Returns the converted value. Subclasses should override this.

class tldap.fields.Field(max_instances=1, required=False)[source]

The base field type.

clean(value)[source]

Convert the value’s type and run validation. Validation errors from to_python and validate are propagated. The correct value is returned if no error is raised.

to_db(value)[source]

returns field’s value prepared for saving into a database.

to_python(value)[source]

Converts the input value into the expected Python data type, raising django.core.exceptions.ValidationError if the data can’t be converted. Returns the converted value. Subclasses should override this.

validate(value)[source]

Validates value and throws ValidationError. Subclasses should override this to provide validation logic.

value_to_db(value)[source]

returns field’s single value prepared for saving into a database.

value_to_python(value)[source]

Converts the input single value into the expected Python data type, raising django.core.exceptions.ValidationError if the data can’t be converted. Returns the converted value. Subclasses should override this.

value_validate(value)[source]

Validates value and throws ValidationError. Subclasses should override this to provide validation logic.

class tldap.fields.IntegerField(max_instances=1, required=False)[source]

Field contains an integer value.

value_to_db(value)[source]

returns field’s single value prepared for saving into a database.

value_to_python(value)[source]

Converts the input single value into the expected Python data type, raising django.core.exceptions.ValidationError if the data can’t be converted. Returns the converted value. Subclasses should override this.

value_validate(value)[source]

Converts the input single value into the expected Python data type, raising django.core.exceptions.ValidationError if the data can’t be converted. Returns the converted value. Subclasses should override this.

class tldap.fields.SecondsSinceEpochField(max_instances=1, required=False)[source]

Field is an integer containing number of seconds since epoch.

value_to_db(value)[source]

returns field’s single value prepared for saving into a database.

value_to_python(value)[source]

Converts the input single value into the expected Python data type, raising django.core.exceptions.ValidationError if the data can’t be converted. Returns the converted value. Subclasses should override this.

value_validate(value)[source]

Converts the input single value into the expected Python data type, raising django.core.exceptions.ValidationError if the data can’t be converted. Returns the converted value. Subclasses should override this.

class tldap.fields.SidField(max_instances=1, required=False)[source]

Field is a binary representation of a Microsoft SID.

value_to_db(value)[source]

returns field’s single value prepared for saving into a database.

value_to_python(value)[source]

Converts the input single value into the expected Python data type, raising django.core.exceptions.ValidationError if the data can’t be converted. Returns the converted value. Subclasses should override this.

value_validate(value)[source]

Converts the input single value into the expected Python data type, raising django.core.exceptions.ValidationError if the data can’t be converted. Returns the converted value. Subclasses should override this.

class tldap.fields.UnicodeField(max_instances=1, required=False)[source]

Field contains a UTF16 character string.

value_to_db(value)[source]

returns field’s single value prepared for saving into a database.

value_to_python(value)[source]

Converts the input single value into the expected Python data type, raising django.core.exceptions.ValidationError if the data can’t be converted. Returns the converted value. Subclasses should override this.

value_validate(value)[source]

Validates value and throws ValidationError. Subclasses should override this to provide validation logic.

Previous topic

tldap.exceptions

Next topic

tldap.helpers

This Page