Exemplo n.º 1
0
 def __init__(self, task_id, filenames, cmd_tmpls, init_active_index):
     self.filenames = filenames
     self.init_active_index = init_active_index
     self.cmd_tmpls = cmd_tmpls
     self.common_dir = os.path.dirname(os.path.commonprefix(self.filenames))
     logviewer.__init__(
         self, task_id, None, self.filenames[self.init_active_index])
Exemplo n.º 2
0
    def __init__(self, name, dirname, task_list):
        self.task_list = task_list
        self.main_log = name
        self.level = 0
        self.task_filter = None
        self.custom_filter = None

        logviewer.__init__(self, name, dirname, name)
Exemplo n.º 3
0
    def __init__(self, name, dirname, task_list):
        self.task_list = task_list
        self.main_log = name
        self.level = 0
        self.task_filter = None
        self.custom_filter = None

        logviewer.__init__(self, name, dirname, name)
Exemplo n.º 4
0
 def __init__(self, suite, task_id, choice, extra_logs, nsubmits,
              remote_run_opts):
     self.suite_name = suite
     self.task_id = task_id
     self.nsubmits = nsubmits
     self.nsubmit = nsubmits
     self.extra_logs = extra_logs
     self.suite = suite
     self.choice = choice
     self.cmd_tmpl = "cylc cat-log %s" % remote_run_opts + (
         " -m t -s %(subnum)s -f %(job_log)s %(suite_name)s %(task_id)s")
     logviewer.__init__(self)
Exemplo n.º 5
0
 def __init__(self, suite, task_id, choice, extra_logs, nsubmits,
              remote_run_opts):
     self.suite_name = suite
     self.task_id = task_id
     self.nsubmits = nsubmits
     self.nsubmit = nsubmits
     self.extra_logs = extra_logs
     self.suite = suite
     self.choice = choice
     self.cmd_tmpl = "cylc cat-log %s" % remote_run_opts + (
         " -m t -s %(subnum)s -f %(job_log)s %(suite_name)s %(task_id)s")
     logviewer.__init__(self)
Exemplo n.º 6
0
 def __init__(self, suite_name, suite_log, remote_run_opts, task_list=None):
     """Initialise the suite log viewer."""
     if task_list is None:
         self.task_list = []
     else:
         self.task_list = task_list
     self.suite_name = suite_name
     self.suite_log = suite_log
     self.rotation = 0
     self.cmd_tmpl = "cylc cat-log %s" % remote_run_opts + (
         " -m t -r %(rotation)s -f %(suite_log)s %(suite_name)s")
     self.task_filter = None
     self.custom_filter = None
     logviewer.__init__(self)
Exemplo n.º 7
0
 def __init__(self, suite_name, suite_log, remote_run_opts, task_list=None):
     """Initialise the suite log viewer."""
     if task_list is None:
         self.task_list = []
     else:
         self.task_list = task_list
     self.suite_name = suite_name
     self.suite_log = suite_log
     self.suite_log_name = SUITE_LOG_OPTS[suite_log]
     self.rotation = 0
     self.cmd_tmpl = "cylc cat-log %s" % remote_run_opts + (
         " -m t -r %(rotation)s -f %(suite_log)s %(suite_name)s")
     self.task_filter = None
     self.custom_filter = None
     logviewer.__init__(self)
Exemplo n.º 8
0
 def __init__(self, task_id, filenames, cmd_tmpls, init_active_index):
     self.filenames = OrderedDict()
     name_str, point_str = TaskID.split(task_id)
     for filename in filenames:
         try:
             f_point_str, f_name_str, f_submit_num_str, f_base_name = (
                 filename.rsplit(os.sep, 4)[1:])
             if (f_point_str == point_str and f_name_str == name_str
                     and int(f_submit_num_str) and f_base_name):
                 name = f_submit_num_str + os.sep + f_base_name
             if ":" in filename:
                 name += " (%s)" % (filename.split(":", 1)[0])
         except ValueError:
             name = filename
         self.filenames[name] = filename
     self.init_active_index = init_active_index
     self.cmd_tmpls = cmd_tmpls
     logviewer.__init__(self, task_id, None,
                        filenames[self.init_active_index])
Exemplo n.º 9
0
 def __init__(self, task_id, filenames, cmd_tmpls, init_active_index):
     self.filenames = OrderedDict()
     name_str, point_str = TaskID.split(task_id)
     for filename in filenames:
         try:
             f_point_str, f_name_str, f_submit_num_str, f_base_name = (
                 filename.rsplit(os.sep, 4)[1:])
             if (f_point_str == point_str and f_name_str == name_str and
                     int(f_submit_num_str) and f_base_name):
                 name = f_submit_num_str + os.sep + f_base_name
             if ":" in filename:
                 name += " (%s)" % (filename.split(":", 1)[0])
         except ValueError:
             name = filename
         self.filenames[name] = filename
     self.init_active_index = init_active_index
     self.cmd_tmpls = cmd_tmpls
     logviewer.__init__(
         self, task_id, None, filenames[self.init_active_index])
Exemplo n.º 10
0
 def __init__(self, name, file_list):
     self.file_list = file_list
     self.common_dir = os.path.dirname(os.path.commonprefix(self.file_list))
     logviewer.__init__(self, name, None, self.file_list[0])
Exemplo n.º 11
0
 def __init__(self, name, file_list):
     self.file_list = file_list
     self.common_dir = os.path.dirname(os.path.commonprefix(self.file_list))
     logviewer.__init__(self, name, None, self.file_list[0])
Exemplo n.º 12
0
 def __init__(self, name, file_list, init_active_index=None):
     self.file_list = file_list
     self.init_active_index = init_active_index
     self.common_dir = os.path.dirname(os.path.commonprefix(self.file_list))
     logviewer.__init__(self, name, None, self.file_list[init_active_index])