示例#1
0
 def _process(self):
     entries = EventLogEntry.find(event_id=int(self._conf.id)).order_by(EventLogEntry.logged_dt.desc()).all()
     realms = {e.realm for e in entries}
     return WPEventLogs.render_template('logs.html', self._conf, entries=entries, realms=realms)
示例#2
0
文件: __init__.py 项目: OmeGak/indico
def _merge_users(target, source, **kwargs):
    EventLogEntry.find(user_id=source.id).update({EventLogEntry.user_id: target.id})
示例#3
0
def _merge_users(target, source, **kwargs):
    EventLogEntry.find(user_id=source.id).update(
        {EventLogEntry.user_id: target.id})
示例#4
0
文件: __init__.py 项目: k3njiy/indico
def _event_deleted(event, **kwargs):
    EventLogEntry.find(event_id=int(event.id)).delete()