def __init__(self, user=None, **kwargs): Event.__init__(self, **kwargs) self.user = user
def __init__(self, app = None, *args, **kwargs): Event.__init__(self, *args, **kwargs) self.app = app
def to_api(self): d = Event.to_api(self) d['task'] = self.task.name return d
def __init__(self, engine = None, app = None, task = None, *args, **kwargs): Event.__init__(self, *args, **kwargs) self.engine = engine self.app = app self.task = task
def __init__(self, engine = None, *args, **kwargs): Event.__init__(self, *args, **kwargs) self.engine = engine
def __init__(self, server, thread, *args, **kwargs): Event.__init__(self, *args, **kwargs) self.server = server self.thread = thread