コード例 #1
0
def create_translator_collection(database, translators=None):
    """Creates a translator collection in mongo, adding
    the passed 1D array of translators to the new collection.
    Returns the newly created translators.
    """
    translator_dao.remove_translator_collection(database)
    created_translators = translator_dao.create_translator_collection(database, translators)
    return created_translators
コード例 #2
0
def create_translator_collection(database, translators=None):
    """Creates a translator collection in mongo, adding
    the passed 1D array of translators to the new collection.
    Returns the newly created translators.
    """
    translator_dao.remove_translator_collection(database)
    created_translators = translator_dao.create_translator_collection(database, translators)
    return created_translators
コード例 #3
0
def remove_translator_collection(database):
    """Completely removes the translator collection from a database.
    """
    return translator_dao.remove_translator_collection(database)
コード例 #4
0
def remove_translator_collection(database):
    """Completely removes the translator collection from a database.
    """
    return translator_dao.remove_translator_collection(database)