Did I find the right examples for you? yes no

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

src/d/o/doubanbot-HEAD/lib/doubanbot/protocol.py   doubanbot(Download)
        msg = domish.Element((None, "message"))
        msg["to"] = jid
        msg["from"] = config.SCREEN_NAME
        msg.addElement(('jabber:x:event', 'x')).addElement("composing")
 
    def send_plain(self, jid, content):
        msg = domish.Element((None, "message"))
        msg["to"] = jid
        msg["from"] = config.SCREEN_NAME
        msg["type"] = 'chat'
    def send_html(self, jid, body, html):
        msg = domish.Element((None, "message"))
        msg["to"] = jid
        msg["from"] = config.SCREEN_NAME
        msg["type"] = 'chat'

src/w/h/whatsup-HEAD/lib/whatsup/protocol.py   whatsup(Download)
        msg = domish.Element((None, "message"))
        msg["to"] = jid
        msg["from"] = config.SCREEN_NAME
        msg.addElement(('jabber:x:event', 'x')).addElement("composing")
 
    def send_plain(self, jid, content):
        msg = domish.Element((None, "message"))
        msg["to"] = jid
        msg["from"] = config.SCREEN_NAME
        msg["type"] = 'chat'

src/b/e/beanstalk-xmpp-HEAD/lib/bsxmpp/protocol.py   beanstalk-xmpp(Download)
        msg = domish.Element((None, "message"))
        msg["to"] = jid
        msg["from"] = config.SCREEN_NAME
        msg.addElement(('jabber:x:event', 'x')).addElement("composing")
 
    def send_plain(self, jid, content, type='chat'):
        msg = domish.Element((None, "message"))
        msg["to"] = jid
        msg["from"] = config.SCREEN_NAME
        msg["type"] = type
    def broadcast(self, msg):
        print "Broadcasting", repr(msg)
        grp, rest = msg.split(' ', 1)
        for jid in self.statii.keys():
            if jid != config.SCREEN_NAME and self.willing_to_receive(jid, grp):