ucsschool.importer.frontend package

Submodules

ucsschool.importer.frontend.cmdline module

Base class for UCS@school import tool cmdline frontends.

class ucsschool.importer.frontend.cmdline.CommandLine[source]

Bases: object

parse_cmdline()[source]
setup_logging(stdout=False, filename=None, uid=None, gid=None, mode=None)[source]
setup_config()[source]
configuration_files

IMPLEMENTME to add module specific configuration files: res = super(YouClass, self).configuration_files res.append(“/your/config.json”) return res

Returns:list of filenames
Return type:list(str)
do_import()[source]
prepare_import()[source]
main()[source]

ucsschool.importer.frontend.parse_user_import_cmdline module

Default command line frontend for import.

class ucsschool.importer.frontend.parse_user_import_cmdline.ParseUserImportCmdline[source]

Bases: object

Setup a command line frontend.

Setup the parser. Override to add more arguments or change the defaults.

parse_cmdline()[source]

Parse the command line.

Returns:the object with the parsed arguments assigned to attributes
Return type:argparse.Namespace

ucsschool.importer.frontend.user_import_cmdline module

UCS@school new import tool cmdline frontend.

class ucsschool.importer.frontend.user_import_cmdline.UserImportCommandLine[source]

Bases: ucsschool.importer.frontend.cmdline.CommandLine

configuration_files

Add new user import specific configuration files.

Returns:list of filenames
Return type:list(str)