Пример #1
0
    def recv_chg(self, msg):
        Super.recv_chg(self, msg)
        if not msg.args:
            self.icon_obj = None
        else:
            msnobj = msg.args[-1]
            self.icon_obj = msn.MSNObject.parse(msn.util.url_decode(msnobj))

        self.event("contact_icon_info", self._username, self.icon_obj)
Пример #2
0
    def recv_chg(self, msg):
        Super.recv_chg(self, msg)
        if not msg.args:
            self.icon_obj = None
        else:
            msnobj = msg.args[-1]
            self.icon_obj = msn.MSNObject.parse(msn.util.url_decode(msnobj))

        self.event('contact_icon_info', self._username, self.icon_obj)
Пример #3
0
    def _parse_iln_nln(self, msg):
        log.debug("got iln/nln")
        args = Super._parse_iln_nln(self, msg)

        iconinfo = msn.util.url_decode(get(msg.args, 4, ""))

        msnobj = None
        if "<" in iconinfo and ">" in iconinfo:
            try:
                msnobj = msn.MSNObject.parse(iconinfo)
            except Exception, e:
                log.error("Error parsing msn object (%r). here's data: %r", e, iconinfo)
Пример #4
0
    def _parse_iln_nln(self, msg):
        log.debug('got iln/nln')
        args = Super._parse_iln_nln(self, msg)

        iconinfo = msn.util.url_decode(get(msg.args, 4, ''))

        msnobj = None
        if '<' in iconinfo and '>' in iconinfo:
            try:
                msnobj = msn.MSNObject.parse(iconinfo)
            except Exception, e:
                log.error('Error parsing msn object (%r). here\'s data: %r', e,
                          iconinfo)