Exemplo n.º 1
0
def get_boards_manager(extensions=[]):
    services = create_services()
    card_extensions = CardExtensions()
    for name, extension in extensions:
        card_extensions.register(name, extension)
    return boardsmanager.BoardsManager('', '', '', card_extensions,
                                       DummySearchEngine(None), services)
Exemplo n.º 2
0
def create_board():
    """Create boards with default columns and default cards
    """
    user_test = get_or_create_data_user()
    data_board = boardsmanager.BoardsManager().create_board(word(), user_test,
                                                            True)
    session.add(data_board)
    session.flush()
    _services = create_services()
    return _services(board.Board, data_board.id, 'boards', '', '', None)
Exemplo n.º 3
0
def get_boards_manager():
    services = create_services()
    card_extensions = CardExtensions()
    return boardsmanager.BoardsManager('', '', '', card_extensions,
                                       DummySearchEngine(None), services)
Exemplo n.º 4
0
 def setUp(self):
     helpers.setup_db(__metadata__)
     self.boards_manager = boardsmanager.BoardsManager()
Exemplo n.º 5
0
 def setUp(self):
     helpers.setup_db(__metadata__)
     services = helpers.create_services()
     self.boards_manager = boardsmanager.BoardsManager(
         '', '', '', {}, None, services)