def __init__(self, action, target, source=None): self.action = action # FIXME: We need to sort out the verbosity for file system events if self.action == self.COPY: self.level = Event.V self.target = target self.source = source Event.__init__(self, action, target, source)
def __init__(self, host: str, return_code: int, stderr: Optional[str] = None): self.host = host self.return_code = return_code self.stderr = stderr Event.__init__(self)
def __init__(self, job): Event.__init__(self, job) if job.event_level is not None: self.level = job.event_level
def __init__(self, *args): Event.__init__(self, *args) self.browser, self.url = args
def __init__(self, return_code: int, host: str): self.return_code = return_code self.host = host Event.__init__(self)
def __init__(self, command, stdin): self.command = command self.stdin = stdin Event.__init__(self, command, stdin)