Mercurial > libervia-web
diff browser_side/base_panels.py @ 433:bbdbee25123a
import constants.Const as C (according to the coding rules)
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 01 May 2014 11:29:09 +0200 |
parents | 9977de10b7da |
children | d52f529a6d42 |
line wrap: on
line diff
--- a/browser_side/base_panels.py Sun Apr 27 18:53:37 2014 +0200 +++ b/browser_side/base_panels.py Thu May 01 11:29:09 2014 +0200 @@ -39,7 +39,7 @@ from html_tools import html_sanitize, html_strip, inlineRoot, convertNewLinesToXHTML -from constants import Const +from constants import Const as C from sat_frontends.tools.strings import addURLToText, addURLToImage from sat.core.i18n import _ @@ -97,7 +97,7 @@ self._refresh() def _refresh(self): - state = (' %s' % Const.MUC_USER_STATES[self._state]) if self._state else '' + state = (' %s' % C.MUC_USER_STATES[self._state]) if self._state else '' special = "" if len(self.special) == 0 else " %s" % self.special self.setHTML("<div class='occupant'>%s%s%s</div>" % (html_sanitize(self.nick), special, state))