2 from collections import namedtuple
4 logger = logging.getLogger("mw.lib.sessions.event")
8 # __slots__ = ('user', 'timestamp', 'data')
10 # def __init__(self, user, timestamp, data=None):
12 # self.timestamp = Timestamp(timestamp)
15 Event = namedtuple("Event", ['user', 'timestamp', 'data'])
18 def unpack_events(events):
19 return list(e.data for e in events)