Event.py
450 Bytes
"""
This holds a generated Event.
Author: Georg Hopp <ghopp@spamtitan.com>
"""
class Event(object):
_SERIAL = 0
def __init__(self, name, type, subject):
self.name = name
self.type = type
self.subject = subject
self.data = None
self.sno = Event._SERIAL
Event._SERIAL += 1
def setData(self, data):
self.data = data
# vim: set ft=python et ts=8 sw=4 sts=4: