ucsschool.importer package

Subpackages

Submodules

ucsschool.importer.configuration module

ucsschool.importer.default_user_import_factory module

ucsschool.importer.exceptions module

All exceptions raised by code in ucsschool.importer.

exception ucsschool.importer.exceptions.UcsSchoolImportError(*args, **kwargs)[source]

Bases: Exception

is_fatal = False
is_countable = True
exception ucsschool.importer.exceptions.UcsSchoolImportFatalError(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

is_fatal = True
exception ucsschool.importer.exceptions.UcsSchoolImportSkipImportRecord(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

is_countable = False
exception ucsschool.importer.exceptions.BadPassword(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

exception ucsschool.importer.exceptions.BadValueStored(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportFatalError

exception ucsschool.importer.exceptions.ConfigurationError(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportFatalError

exception ucsschool.importer.exceptions.CreationError(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

exception ucsschool.importer.exceptions.DeletionError(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

exception ucsschool.importer.exceptions.FormatError(msg, scheme, data, *args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

exception ucsschool.importer.exceptions.EmptyFormatResultError(msg, scheme, data, *args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.FormatError

exception ucsschool.importer.exceptions.EmptyMandatoryAttribute(msg, attr_name, *args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

exception ucsschool.importer.exceptions.InitialisationError(msg, log_traceback=True, *args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportFatalError

exception ucsschool.importer.exceptions.InvalidBirthday(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

exception ucsschool.importer.exceptions.InvalidClassName(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

exception ucsschool.importer.exceptions.InvalidEmail(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

exception ucsschool.importer.exceptions.InvalidSchoolClasses(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

exception ucsschool.importer.exceptions.InvalidSchools(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

exception ucsschool.importer.exceptions.LDAPWriteAccessDenied(msg=None, *args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportFatalError

exception ucsschool.importer.exceptions.MissingMandatoryAttribute(msg, mandatory_attributes, *args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

exception ucsschool.importer.exceptions.MissingMailDomain(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

exception ucsschool.importer.exceptions.MissingSchoolName(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

exception ucsschool.importer.exceptions.MissingUid(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

exception ucsschool.importer.exceptions.ModificationError(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

exception ucsschool.importer.exceptions.MoveError(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

exception ucsschool.importer.exceptions.NameKeyExists(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportFatalError

exception ucsschool.importer.exceptions.NoRole(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

exception ucsschool.importer.exceptions.NotSupportedError(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

exception ucsschool.importer.exceptions.NoUsernameAtAll(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportFatalError

exception ucsschool.importer.exceptions.NoValueStored(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportFatalError

exception ucsschool.importer.exceptions.ReadOnlyConfiguration(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportFatalError

exception ucsschool.importer.exceptions.TooManyErrors(msg, errors, *args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportFatalError

exception ucsschool.importer.exceptions.UDMError(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

exception ucsschool.importer.exceptions.UDMValueError(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UDMError

exception ucsschool.importer.exceptions.UnknownAction(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

exception ucsschool.importer.exceptions.UnknownDisabledSetting(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

exception ucsschool.importer.exceptions.UnknownProperty(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

exception ucsschool.importer.exceptions.UnknownRole(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

exception ucsschool.importer.exceptions.UnknownSchoolName(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

exception ucsschool.importer.exceptions.UniqueIdError(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

exception ucsschool.importer.exceptions.UsernameToLong(*args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

exception ucsschool.importer.exceptions.UserValidationError(msg, validation_error, *args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

Wraps ucsschool.lib.models.attributes.ValidationError

exception ucsschool.importer.exceptions.WrongUserType(msg, *args, **kwargs)[source]

Bases: ucsschool.importer.exceptions.UcsSchoolImportError

Wraps ucsschool.lib.models.base.WrongObjectType

ucsschool.importer.factory module

Singleton to the factory currently in use.

ucsschool.importer.factory.setup_factory(factory_cls_name)[source]

Create import factory.

Parameters

factory_cls_name (str) – full dotted name of class

Returns

Factory object

Return type

Factory

ucsschool.importer.factory.load_class(dotted_class_name)[source]

Load class from its full dotted name.

Parameters

dotted_class_name – str: full dotted name of class

Returns

class

Return type

type

class ucsschool.importer.factory.Factory(factory=None)[source]

Bases: object

Singleton to the global abstract factory object.