Mercurial > libervia-backend
diff frontends/src/quick_frontend/quick_app.py @ 1019:6a16ec17a458
better PEP-8 compliance
author | souliane <souliane@mailoo.org> |
---|---|
date | Wed, 07 May 2014 15:44:31 +0200 |
parents | d1084f7e56a5 |
children | 5197600a1e13 |
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_app.py Thu May 08 19:11:47 2014 +0200 +++ b/frontends/src/quick_frontend/quick_app.py Wed May 07 15:44:31 2014 +0200 @@ -27,7 +27,7 @@ from sat_frontends.quick_frontend.quick_utils import escapePrivate, unescapePrivate from optparse import OptionParser -from sat_frontends.quick_frontend.constants import Const +from sat_frontends.quick_frontend.constants import Const as C class QuickApp(object): @@ -281,7 +281,7 @@ self.chat_wins[win.bare].printMessage(from_jid, msg, profile, float(timestamp) if timestamp else '') def sendMessage(self, to_jid, message, subject='', mess_type="auto", extra={}, callback=None, errback=None, profile_key="@NONE@"): - if to_jid.startswith(Const.PRIVATE_PREFIX): + if to_jid.startswith(C.PRIVATE_PREFIX): to_jid = unescapePrivate(to_jid) mess_type = "chat" if callback is None: @@ -527,7 +527,7 @@ if from_jid_s == '@ALL@': target = '@ALL@' - nick = Const.ALL_OCCUPANTS + nick = C.ALL_OCCUPANTS else: from_jid = JID(from_jid_s) target = from_jid.bare