Пример #1
0
 def __update_progress(self, match_method, items_to_complete,
                       command_output):
     items_count = len(items_to_complete)
     for item in items_to_complete:
         if match_method(item, command_output):
             self.items_processed += 1
             if self.items_processed <= items_count:
                 log.progress(self.items_processed, items_count,
                              '[ INFO    ]: Processing')
Пример #2
0
 def __update_progress(
     self, match_method, items_to_complete, command_output
 ):
     items_count = len(items_to_complete)
     for item in items_to_complete:
         if match_method(item, command_output):
             self.items_processed += 1
             if self.items_processed <= items_count:
                 log.progress(
                     self.items_processed, items_count,
                     '[ INFO    ]: Processing'
                 )
Пример #3
0
 def __init_progress(self):
     log.progress(
         0, 100, '[ INFO    ]: Processing'
     )
Пример #4
0
 def __stop_progress(self):
     log.progress(
         100, 100, '[ INFO    ]: Processing'
     )
Пример #5
0
 def __stop_progress(self):
     log.progress(100, 100, '[ INFO    ]: Processing')
Пример #6
0
 def __init_progress(self):
     log.progress(0, 100, '[ INFO    ]: Processing')