Exemplo n.º 1
0
def clear_board(board: trello.Board):
    for list in board.get_lists('all'):
        list.archive_all_cards()
        list.close()

    preexisting_labels = board.get_labels()
    if preexisting_labels:
        for label in preexisting_labels:
            board.delete_label(label.id)
Exemplo n.º 2
0
 def extract_board_info(board: Board):
   print('== Members')
   for member in board.all_members():
     print('{0}({1}) : {2}'.format(member.full_name, member.username, member.id))
   print('== Labels')
   for label in board.get_labels():
     print('[{0}]{1} : {2}'.format(label.color, label.name, label.id))
   print('== Lists')
   for list in board.list_lists():
     print('{0} : {1}'.format(list.name, list.id))