comparison frontends/src/quick_frontend/quick_app.py @ 1391:1276e6a0716b

quick_frontend: better PEP-8 compliance
author souliane <souliane@mailoo.org>
date Wed, 25 Mar 2015 15:21:17 +0100
parents a025242bebe7
children 50d5d6325f62
comparison
equal deleted inserted replaced
1390:337be5318177 1391:1276e6a0716b
456 self.contact_lists[profile].setContact(entity, _groups, attributes, in_roster=True) 456 self.contact_lists[profile].setContact(entity, _groups, attributes, in_roster=True)
457 457
458 def newMessageHandler(self, from_jid_s, msg, type_, to_jid_s, extra, profile): 458 def newMessageHandler(self, from_jid_s, msg, type_, to_jid_s, extra, profile):
459 from_jid = jid.JID(from_jid_s) 459 from_jid = jid.JID(from_jid_s)
460 to_jid = jid.JID(to_jid_s) 460 to_jid = jid.JID(to_jid_s)
461
462 if not self.trigger.point("newMessageTrigger", from_jid, msg, type_, to_jid, extra, profile=profile): 461 if not self.trigger.point("newMessageTrigger", from_jid, msg, type_, to_jid, extra, profile=profile):
463 return 462 return
464 463
465 from_me = from_jid.bare == self.profiles[profile].whoami.bare 464 from_me = from_jid.bare == self.profiles[profile].whoami.bare
466 target = to_jid if from_me else from_jid 465 target = to_jid if from_me else from_jid