univention.management.console.modules.distribution package#
- class univention.management.console.modules.distribution.Instance(*args, **kwargs)[source]#
Bases:
SchoolBaseModule- checkfiles(request)[source]#
Checks whether the given filename has already been uploaded:
request.options: { ‘filenames’: [ ‘…’, … ], project: ‘…’ }
- returns: {
‘filename’: ‘…’, ‘sessionDuplicate’: True|False, ‘projectDuplicate’: True|False, ‘distributed’: True|False
}
Submodules#
univention.management.console.modules.distribution.util module#
- exception univention.management.console.modules.distribution.util.DistributionException[source]#
Bases:
Exception
- exception univention.management.console.modules.distribution.util.InvalidProjectFilename[source]#
Bases:
DistributionException
- univention.management.console.modules.distribution.util.jsonEncode(val)[source]#
Encode to JSON using the custom _Dict encoder.
- univention.management.console.modules.distribution.util.jsonDecode(val)[source]#
Decode a JSON string and replace dict types with _Dict.
- class univention.management.console.modules.distribution.util.User(*args, **_props)[source]#
Bases:
_Dict- property homedir#
- class univention.management.console.modules.distribution.util.Group(*args, **_props)[source]#
Bases:
_Dict
- univention.management.console.modules.distribution.util.openRecipients(entryDN, ldap_connection)[source]#
- class univention.management.console.modules.distribution.util.Project(*args, **_props)[source]#
Bases:
_Dict- property projectfile#
The absolute project path to the project file.
- property cachedir#
The absolute path of the project cache directory.
- property sender_projectdir#
The absolute path of the project directory in the senders home.
- property atJobDistribute#
- property atJobCollect#
- property num_results#
- property starttime#
- property deadline#
- validate()[source]#
Validate the project data. In case of any errors with the data, a ValueError with a proper error message is raised.
- save()[source]#
Save project data to disk and create job. In case of any errors, an IOError is raised.