예제 #1
0
def remove_evaluation_collection(project):
    """Completely blows away the evaluation collection. Returns the status of effort.
    Caveat emptor.
    """
    collection = get_evaluation_collection(project)
    status = mongo_utils.mongo_remove_collection(collection)
    return status
예제 #2
0
def remove_project_collection():
    """Completely blows away the project collection. Returns the status of effort.
    Caveat emptor.
    """
    collection = get_project_collection()
    status = mongo_utils.mongo_remove_collection(collection)
    return status
예제 #3
0
def remove_group_collection(database):
    """Completely blows away the group collection. Returns the status of effort.
    Caveat emptor.
    """
    collection = get_group_collection(database)
    status = mongo_utils.mongo_remove_collection(collection)
    return status
예제 #4
0
def remove_translator_collection(database):
    """Completely blows away the translator collection.
    """
    collection = get_translator_collection(database)
    status = mongo_utils.mongo_remove_collection(collection)
    return status
예제 #5
0
def remove_profile_collection(database):
    """Completely blows away the profile collection.
    """
    collection = get_profile_collection(database)
    status = mongo_utils.mongo_remove_collection(collection)
    return status
예제 #6
0
def remove_record_collection(database, collection):
    """Completely blows away the record collection for a given structure.
    """
    collection = get_record_collection(database, collection)
    status = mongo_utils.mongo_remove_collection(collection)
    return status