示例#1
0
def flush(obj):
    sa_session.add(obj)
    sa_session.flush()
示例#2
0
def mark_obj_deleted(obj):
    obj.deleted = True
    sa_session.add(obj)
    sa_session.flush()
示例#3
0
def delete_user_roles(user):
    for ura in user.roles:
        sa_session.delete(ura)
    sa_session.flush()
示例#4
0
def delete_obj(obj):
    sa_session.delete(obj)
    sa_session.flush()
示例#5
0
def flush(obj):
    sa_session.add(obj)
    sa_session.flush()
示例#6
0
def mark_obj_deleted(obj):
    obj.deleted = True
    sa_session.add(obj)
    sa_session.flush()
示例#7
0
def delete_user_roles(user):
    for ura in user.roles:
        sa_session.delete(ura)
    sa_session.flush()
示例#8
0
def delete_obj(obj):
    sa_session.delete(obj)
    sa_session.flush()