def print_chains(chains, inform7):
    for (i, chain) in enumerate(chains):
        commands = inform7.gen_commands_from_actions(chain.actions)
        print('{:2d}. {}'.format((i + 1), ' > '.join(commands)))
def print_chains(chains, inform7):
    for (i, chain) in enumerate(chains):
        commands = inform7.gen_commands_from_actions(chain.actions)
        print('{:2d}. {}'.format((i + 1), ' > '.join(commands)))