Did I find the right examples for you? yes no

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

src/m/r/mrim-HEAD/src/glue.py   mrim(Download)
	def mmp_handler_got_message(self, mess, offtime):
		mail = utils.win2str(mess.getFrom())
		body = mess.getBodyPayload()
		jid_from = utils.mail2jid(mail)
		msg = xmpp.Message(frm=jid_from)

src/m/r/mrim-HEAD/src/protocol.py   mrim(Download)
	def getBodyPayload(self):
		return utils.win2str(self.getBodyAttr('message'))
 
	def getFlags(self):
		flag_code = self.getBodyAttr('flags')
		self['flags'] = eval('0x'+self.msg['X-MRIM-Flags'])
		self['version'] = self.msg['Version']
		self['message'] = utils.win2str(self.payload[0].strip())
		self['rtf-message'] = self.payload[1].strip()
 
			card_dict = {}
			for n in range(self.getBodyAttr('fields_num')):
				card_dict[fields[n]] = utils.win2str(card[n])
			vcards.append(card_dict)
		return vcards
	def getGroups(self):
		d = {}
		for g in self.packet.getBodyAttr('groups'):
			d[g[0]] = {'name':utils.win2str(g[1])}
		return d
					'flags':u[0],
					'group':u[1],
					'nick':utils.win2str(u[3]),
					'server_flags':u[4],
					'status':u[5],

src/m/r/mrim-HEAD/src/core.py   mrim(Download)
 
		elif ptype == MRIM_CS_LOGIN_REJ:
			res = utils.win2str(mmp_packet.getBodyAttr('reason'))
			self.log(logging.INFO, "Authorization failure: %s" % res)
			self.mmp_handler_server_not_authorized(res)
		elif ptype == MRIM_CS_MAILBOX_STATUS:
			n = mmp_packet.getBodyAttr('count')
			sender = utils.win2str(mmp_packet.getBodyAttr('sender'))
			subject = utils.win2str(mmp_packet.getBodyAttr('subject'))
			unix_time = mmp_packet.getBodyAttr('unix_time')
				try:
					nickname = mmp_packet.getBodyAttr('nickname')
					self.myname = utils.win2str(nickname)
				except KeyError:
					self.myname = self._login