diff --git a/core/vmnf_navi_cases.py b/core/vmnf_navi_cases.py new file mode 100644 index 0000000..ab94837 --- /dev/null +++ b/core/vmnf_navi_cases.py @@ -0,0 +1,68 @@ +# -*- coding: utf-8 -*- +# __ _ +# \/imana 2016 +# [|-ramewørk +# +# +# Author: s4dhu +# Email: None: + self.vmnf_handler = vmnf_handler + self.health_check = [] + self.prompt = '🗂 ' + self.accepted_keys = ( + "enter", "f", "r", "o", "c", "i", "d", "ctrl-y", "p" + ) + self.model = '_CASES_' + self.obj_id_col = 'case_id' + self._cases_ = self.get_cases() + + def load_menu_settings(self): + try: + with open(f'{dirname(__file__)}/navisettings.yaml', 'r') as f: + settings = yaml.load(f,Loader=yaml.FullLoader) + except FileNotFoundError: + os.system('clear') + default_naviban() + cprint(f'[{datetime.now()}] Error loading navisettings!','red') + sys.exit(1) +