示例#1
0
文件: events.py 项目: tomjie/aleph
def save_event(action, path, source_ip, query, data, role_id):
    EventLog.emit(action,
                  path,
                  source_ip=source_ip,
                  query=query,
                  data=data,
                  role_id=role_id)
    db.session.commit()
示例#2
0
文件: events.py 项目: nivertech/aleph
def save_event(action, path, source_ip, query, data, role_id):
    EventLog.emit(action, path, source_ip=source_ip,
                  query=query, data=data, role_id=role_id)
    db.session.commit()