mini_project_1.common module¶
common utilities utilized by mini-project-1
-
exception
mini_project_1.common.
ShellArgumentException
(*args, **kwargs)[source]¶ Bases:
Exception
Custom exception class noting a invalid argument within a
shell.MiniProjectShell
command
-
class
mini_project_1.common.
ShellArgumentParser
(*args, **kwargs)[source]¶ Bases:
argparse.ArgumentParser
Custom argument parser for use in :class`.shell.MiniProjectShell`
-
exception
mini_project_1.common.
ValueNotFoundException
(*args, **kwargs)[source]¶ Bases:
Exception
Exception for queries with no results
-
mini_project_1.common.
check_valid_email
(database, email)[source]¶ Checks whether an email is in the database
Return type: bool
-
mini_project_1.common.
check_valid_lcode
(database, lcode)[source]¶ Checks whether a lcode is in the database
Return type: bool
-
mini_project_1.common.
get_location_id
(dbcursor, keyword, prompt=None)[source]¶ Gets a location lcode from the user.