Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Fire an event into the system.

:param event: The event that is to be fired.
:param channels: The channels that this event is delivered on.
   If no channels are specified, the event is delivered to the
   channels found in the event's :attr:`channel` attribute.
   If this attribute is not set, the event is delivered to
   the firing component's channel. And eventually,
   when set neither, the event is delivered on all
   channels ("*").

src/c/i/circuits-3.0.0.dev/examples/cat.py   circuits(Download)
        self.fire(write(data), stdout)
    def eof(self):

src/i/r/irclogger-0.0.1/irclogger/main.py   irclogger(Download)
        channel, _ = parse_logfile(filename)
        logfile = generate_logfile(channel)
        self.fire(Close(), self.channel)
        self.fire(Open(path.join(dirname, logfile), "a"), self.channel)
    def log(self, message):
        timestamp = strftime("[%H:%M:%S]", localtime(time()))
            Write("{0:s} {1:s}\n".format(timestamp, message)), self.channel