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

All Samples(58)  |  Call(58)  |  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/circuits/protocols/irc.py   circuits(Download)
    def command_RAW(self, data):
        self.fire(write("%s\r\n" % data))
 
    def command_PASS(self, password):
        self.fire(RAW("PASS %s" % password))
 
    def command_AWAY(self, message=""):
        self.fire(RAW("AWAY :%s" % message))
    def command_USER(self, ident, host, server, name):
        self.fire(RAW("USER %s \"%s\" \"%s\" :%s" % (
            ident, host, server, name)))
 
    def command_NICK(self, nick):
        self.fire(RAW("NICK %s" % nick))

src/c/i/circuits-3.0.0.dev/circuits/io/serial.py   circuits(Download)
    def _on_ready(self, component):
        self.fire(_open(), self.channel)
 
    @handler("_open")
    def _on_open(self, port=None, baudrate=None, bufsize=None):
        self._poller.addReader(self, self._fd)
 
        self.fire(opened(self._port, self._baudrate))
 
    @handler("registered", "started", channel="*")
    def _on_registered_or_started(self, component, manager=None):
        if self._poller is None:
            if isinstance(component, BasePoller):
                self._poller = component
                self.fire(ready(self))
                if component is not None:
                    self._poller = component
                    self.fire(ready(self))
                else:
                    self._poller = Poller().register(self)
                    self.fire(ready(self))

src/c/i/circuits-3.0.0.dev/circuits/io/file.py   circuits(Download)
    def _on_ready(self, component):
        self.fire(_open(), self.channel)
 
    @handler("_open")
    def _on_open(self, filename=None, mode=None, bufsize=None):
            self._poller.addReader(self, self._fd)
 
        self.fire(opened(self.filename, self.mode))
 
    @handler("registered", "started", channel="*")
    def _on_registered_or_started(self, component, manager=None):
        if self._poller is None:
            if isinstance(component, BasePoller):
                self._poller = component
                self.fire(ready(self))
                if component is not None:
                    self._poller = component
                    self.fire(ready(self))
                else:
                    self._poller = Poller().register(self)
                    self.fire(ready(self))

src/c/i/circuits-3.0.0.dev/tests/core/test_call_wait_timeout.py   circuits(Download)
    def _on_wait(self, timeout=-1):
        result = self.fire(hello())
        try:
            yield self.wait('hello', timeout=timeout)
        except TimeoutError as e: