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