Beispiel #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)
Beispiel #2
0
def _merge_users(target, source, **kwargs):
    EventLogEntry.find(user_id=source.id).update({EventLogEntry.user_id: target.id})
Beispiel #3
0
def _merge_users(target, source, **kwargs):
    EventLogEntry.find(user_id=source.id).update(
        {EventLogEntry.user_id: target.id})
Beispiel #4
0
def _event_deleted(event, **kwargs):
    EventLogEntry.find(event_id=int(event.id)).delete()