Example #1
0
def graph_suite(reg, start, stop, graph_opts,
                gcapture_windows, tmpdir, template_opts, window=None):
    """Launch the cylc graph command with some options."""
    options = graph_opts
    options += ' ' + reg + ' ' + start + ' ' + stop
    command = "cylc graph " + template_opts + " " + options
    foo = gcapture_tmpfile(command, tmpdir)
    gcapture_windows.append(foo)
    foo.run()
    return False
Example #2
0
def graph_suite(reg, start, stop, graph_opts,
                gcapture_windows, tmpdir, template_opts, window=None):
    """Launch the cylc graph command with some options."""
    options = graph_opts
    options += ' ' + reg + ' ' + start + ' ' + stop
    command = "cylc graph " + template_opts + " " + options
    foo = gcapture_tmpfile(command, tmpdir)
    gcapture_windows.append(foo)
    foo.run()
    return False
Example #3
0
        options += ' -o ' + ofile

    if True:
        if start != '':
            try:
                ct(start)
            except CycleTimeError,x:
                warning_dialog( str(x), window ).warn()
                return False
        if stop != '':
            if start == '':
                warning_dialog(
                        "You cannot override Final Cycle without " +
                        "overriding Initial Cycle.").warn()
                return False

            try:
                ct(stop)
            except CycleTimeError,x:
                warning_dialog( str(x), window ).warn()
                return False

    if is_warm:
        options += ' -w '
    options += ' ' + reg + ' ' + start + ' ' + stop
    command = "cylc graph --notify-completion " + options
    foo = gcapture_tmpfile( command, tmpdir )
    gcapture_windows.append(foo)
    foo.run()
    return False
Example #4
0
                 gcapture_windows, tmpdir, template_opts, window=None ):
    """Launch the cylc graph command with some options."""
    options = graph_opts

    if True:
        if start != '':
            try:
                ct(start)
            except CycleTimeError,x:
                warning_dialog( str(x), window ).warn()
                return False
        if stop != '':
            if start == '':
                warning_dialog(
                        "You cannot override Final Cycle without " +
                        "overriding Initial Cycle.").warn()
                return False

            try:
                ct(stop)
            except CycleTimeError,x:
                warning_dialog( str(x), window ).warn()
                return False

    options += ' ' + reg + ' ' + start + ' ' + stop
    command = "cylc graph --notify-completion " + template_opts + " " + options
    foo = gcapture_tmpfile( command, tmpdir )
    gcapture_windows.append(foo)
    foo.run()
    return False