Mercurial > libervia-web
comparison src/browser/sat_browser/main_panel.py @ 840:73cc4658f431
browser (strings): add a parameter "new_target" to addURLToText + fix a wrong import
author | souliane <souliane@mailoo.org> |
---|---|
date | Wed, 13 Jan 2016 13:12:58 +0100 |
parents | ab87da500820 |
children | 2ef71ec07d87 |
comparison
equal
deleted
inserted
replaced
839:09ace5cbcb9b | 840:73cc4658f431 |
---|---|
22 import pyjd # this is dummy in pyjs | 22 import pyjd # this is dummy in pyjs |
23 from sat.core.log import getLogger | 23 from sat.core.log import getLogger |
24 log = getLogger(__name__) | 24 log = getLogger(__name__) |
25 | 25 |
26 from sat.core.i18n import _ | 26 from sat.core.i18n import _ |
27 from sat_frontends.tools.strings import addURLToText | 27 from sat_browser import strings |
28 | 28 |
29 from pyjamas.ui.DockPanel import DockPanel | 29 from pyjamas.ui.DockPanel import DockPanel |
30 from pyjamas.ui.HorizontalPanel import HorizontalPanel | 30 from pyjamas.ui.HorizontalPanel import HorizontalPanel |
31 from pyjamas.ui.VerticalPanel import VerticalPanel | 31 from pyjamas.ui.VerticalPanel import VerticalPanel |
32 from pyjamas.ui.Button import Button | 32 from pyjamas.ui.Button import Button |
160 if not status: | 160 if not status: |
161 if presence and presence in C.PRESENCE: | 161 if presence and presence in C.PRESENCE: |
162 status = C.PRESENCE[presence] | 162 status = C.PRESENCE[presence] |
163 else: | 163 else: |
164 status = self.EMPTY_STATUS | 164 status = self.EMPTY_STATUS |
165 self.display.setHTML(addURLToText(status)) | 165 self.display.setHTML(strings.addURLToText(status)) |
166 | 166 |
167 | 167 |
168 class PresenceStatusMenuBar(base_widget.WidgetMenuBar): | 168 class PresenceStatusMenuBar(base_widget.WidgetMenuBar): |
169 def __init__(self, parent): | 169 def __init__(self, parent): |
170 styles = {'menu_bar': 'presence-button'} | 170 styles = {'menu_bar': 'presence-button'} |