コード例 #1
0
ファイル: profile_processor.py プロジェクト: RBerkheimer/mars
def create_profile_collection(database, profile):
    """Adds the given profile to the database. Returns the newly inserted profile record.
    """
    profile_dao.remove_profile_collection(database)
    profile = profile_dao.create_profile_collection(database, profile)
    return profile
コード例 #2
0
def create_profile_collection(database, profile):
    """Adds the given profile to the database. Returns the newly inserted profile record.
    """
    profile_dao.remove_profile_collection(database)
    profile = profile_dao.create_profile_collection(database, profile)
    return profile
コード例 #3
0
ファイル: profile_processor.py プロジェクト: RBerkheimer/mars
def remove_profile_collection(database):
    """Completely removes a profile collection from storage in the specified database.
    """
    return profile_dao.remove_profile_collection(database)
コード例 #4
0
def remove_profile_collection(database):
    """Completely removes a profile collection from storage in the specified database.
    """
    return profile_dao.remove_profile_collection(database)