Mercurial > libervia-web
comparison src/browser/sat_browser/contact_list.py @ 614:14bdf5394ae9 frontends_multi_profiles
browser side: fixed jid's public blog menu
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 10 Feb 2015 20:43:26 +0100 |
parents | ea27925ef2a8 |
children | 1c0d5a87c554 |
comparison
equal
deleted
inserted
replaced
613:deddd1cd8aa5 | 614:14bdf5394ae9 |
---|---|
38 import panels | 38 import panels |
39 import html_tools | 39 import html_tools |
40 import chat | 40 import chat |
41 | 41 |
42 | 42 |
43 unicode = str # XXX: pyjama doesn't manage unicode | |
44 | |
45 | |
43 def buildPresenceStyle(presence, base_style=None): | 46 def buildPresenceStyle(presence, base_style=None): |
44 """Return the CSS classname to be used for displaying the given presence information. | 47 """Return the CSS classname to be used for displaying the given presence information. |
45 @param presence (str): presence is a value in ('', 'chat', 'away', 'dnd', 'xa') | 48 @param presence (str): presence is a value in ('', 'chat', 'away', 'dnd', 'xa') |
46 @param base_style (str): base classname | 49 @param base_style (str): base classname |
47 @return: str | 50 @return: str |
135 ClickHandler.__init__(self) | 138 ClickHandler.__init__(self) |
136 self.addClickListener(self) | 139 self.addClickListener(self) |
137 self.click_listener = click_listener | 140 self.click_listener = click_listener |
138 | 141 |
139 def addMenus(self, menu_bar): | 142 def addMenus(self, menu_bar): |
140 menu_bar.addCachedMenus(C.MENU_ROSTER_JID_CONTEXT, {'jid': self.jid}) | 143 menu_bar.addCachedMenus(C.MENU_ROSTER_JID_CONTEXT, {'jid': unicode(self.jid)}) |
141 menu_bar.addCachedMenus(C.MENU_JID_CONTEXT, {'jid': self.jid}) | 144 menu_bar.addCachedMenus(C.MENU_JID_CONTEXT, {'jid': unicode(self.jid)}) |
142 | 145 |
143 def setMessageWaiting(self, waiting): | 146 def setMessageWaiting(self, waiting): |
144 """Show a visual indicator if message are waiting | 147 """Show a visual indicator if message are waiting |
145 | 148 |
146 @param waiting: True if message are waiting""" | 149 @param waiting: True if message are waiting""" |