son_editor.app package¶
son_editor.app.database module¶
-
son_editor.app.database.init_db()¶ Import model modules
- Import all modules here that might define models so that
- they will be registered properly on the metadata. Otherwise you will have to import them first before calling init_db()
-
son_editor.app.database.reset_db()¶ Resets the database
only used in tests
-
son_editor.app.database.scan_project_dir(project_path, pj)¶ Scan project dir
- Scans the project dir for any new functions and services
- via _scan_for_functions and _scan_for_services
Parameters: - project_path – The path of the project to scan
- pj – The project from the database to attach the descriptors to
Returns:
-
son_editor.app.database.scan_workspaces_dir()¶ Scan workpaces directory
- Scans the workpaces directory for any users.
- Will visit every one to add new workspaces etc via _scan_user_dir
son_editor.app.exceptions module¶
-
exception
son_editor.app.exceptions.ExtNotReachable(msg)¶ Bases:
ExceptionThrown whenever an external host cannot be contacted, be it because of a wrong url or network problems
-
exception
son_editor.app.exceptions.InvalidArgument(msg: str)¶ Bases:
ExceptionThrown whenever an argument is missing data or is supplying the wrong data
-
exception
son_editor.app.exceptions.NameConflict(msg: str)¶ Bases:
ExceptionThrown whenever a name conflict arises for names that must be unique
-
exception
son_editor.app.exceptions.NotFound(msg: str)¶ Bases:
ExceptionThrown whenever a resource cannot be located, or the user has no access to it
-
exception
son_editor.app.exceptions.PackException(msg: str)¶ Bases:
ExceptionThrown whenever a service cannot be packaged by son-package, wraps the cli tools error message
-
exception
son_editor.app.exceptions.StillReferenced(msg: str)¶ Bases:
ExceptionThrown whenever an action is taken towards an element that is still referenced by another that would compromise the relationship like deleting the referenced object
Bases:
ExceptionThrown whenever an unauthorized access is detected, e.g. because the user has not yet logged in
son_editor.app.securityservice module¶
-
son_editor.app.securityservice.check_access(request)¶ checks if the current user is allowed to access a given resource. Session will be invalidated if the login information cannot be found
Parameters: request – The http request made to the server Returns: nothing if access granted Raises: UnauthorizedException – if user not logged in