Ejemplo n.º 1
0
 def inspect(self):
     sel = pick_list(self.selected)
     sel.show()
     while True:
         print('** Select Inspection **')
         uchoice = menu_list(*[k for k, v in inspections[sel.entity_type].items() if v != []], go_up=True)
         if uchoice == -1 or uchoice is None:
             return True
         inspections[sel.entity_type][uchoice](self)(sel)
Ejemplo n.º 2
0
 def add_archive(self):
     print('Add a new archive by reference.')
     source = input('Source: ')
     nick = input('Nickname for this source: ')
     ds_type = pick_list(dataSourceTypes)
     print('Input parameters or blank')
     params = get_kv_pairs('Parameter')
     self._catalog.add_archive(source, [nick], ds_type, **params)
     return True