Application Python Module

Base application module.

pacifica.auth.application.check_sa_module_class(sa_path, sa_module, sa_class)[source]

Check the combination of module and class.

pacifica.auth.application.command_setup(argv, description, user_class, user_import_path, config_callback=None, parser_callback=None)[source]

Common setup for commands to execute.

pacifica.auth.application.create_argparser(description, parser_callback=None)[source]

Create the argparser and return it.

pacifica.auth.application.create_configparser(args: argparse.Namespace, config_callback=None)[source]

Create the config parser and return it calling callback if given.

pacifica.auth.application.error_page_default(**kwargs)[source]

Error page when something goes wrong.

pacifica.auth.application.pacifica_auth_arguments(parser)[source]

Add Pacifica authentication command line arguments.

pacifica.auth.application.quickstart(argv, description, user_class, user_import_path, swagger_path, config_callback=None, parser_callback=None)[source]

Simple wrapper around cherrypy quickstart.

pacifica.auth.application.session_commit()[source]

Commit the user session to the database.

pacifica.auth.application.social_settings(configparser: configparser.ConfigParser, user_class, user_import_path)[source]

Setup the social settings for pacifica auth.