Пример #1
0
 def run(self, add, update_id, delete_id, show_inventory, inventory_file):
     """
         This is the main driver for the program.
     """
     if self.exitstate == 1:
         sys.exit(0)
     else:
         #run the controller
         ctl = ControllerMain()
         ctl.run(add, update_id, delete_id, show_inventory, inventory_file)
         ctl = None
Пример #2
0
 def run(self):
     """
         This is the main driver for the program.
     """
     if self.exitstate == 1:
         sys.exit(0)
     else:
         #run the controller
         ctl = ControllerMain(self.config)
         ctl.run()
         ctl = None
Пример #3
0
 def run(self, add, update_id, delete_id, show_inventory, inventory_file):
     """
         This is the main driver for the program.
     """
     if self.exitstate == 1:
         sys.exit(0)
     else:
         #run the controller
         ctl = ControllerMain()
         ctl.run(add
                 , update_id
                 , delete_id
                 , show_inventory
                 , inventory_file)
         ctl = None