Mercurial > libervia-web
diff browser_side/panels.py @ 370:30d03d9f07e4
browser_side: refactorization of the file tools.py:
- tools.py renamed to html_tools.py
- method setPresenceStyle moved to contact.py
- classes DragLabel and LiberviaDragWidget moved to base_widget.py
- class FilterFileUpload moved to file_tools.py
author | souliane <souliane@mailoo.org> |
---|---|
date | Sun, 23 Feb 2014 17:01:03 +0100 |
parents | 39ae5bf92786 |
children | 5e0e2032928c |
line wrap: on
line diff
--- a/browser_side/panels.py Sun Feb 23 16:20:03 2014 +0100 +++ b/browser_side/panels.py Sun Feb 23 17:01:03 2014 +0100 @@ -39,17 +39,19 @@ from pyjamas import Window from __pyjamas__ import doc -from tools import html_sanitize, setPresenceStyle -from base_panels import ChatText, OccupantsList, PopupMenuPanel, BaseTextEditor, LightTextEditor from datetime import datetime from time import time +from jid import JID + +from html_tools import html_sanitize +from base_panels import ChatText, OccupantsList, PopupMenuPanel, BaseTextEditor, LightTextEditor from card_game import CardPanel from radiocol import RadioColPanel from menu import Menu -from jid import JID import dialog import base_widget import richtext +import contact from constants import Const from plugin_xep_0085 import ChatStateMachine @@ -970,7 +972,7 @@ def setPresence(self, presence): self._presence = presence - setPresenceStyle(self.presence_button, self._presence) + contact.setPresenceStyle(self.presence_button, self._presence) def setStatus(self, status): self.status_panel.setContent({'text': status})