comparison src/browser/sat_browser/main_panel.py @ 662:ebb602d8b3f2 frontends_multi_profiles

browser_side: replace all instances of 'str' with 'unicode'
author souliane <souliane@mailoo.org>
date Tue, 03 Mar 2015 06:51:13 +0100
parents 0b7e4226378d
children 849ffb24d5bf
comparison
equal deleted inserted replaced
661:2664fe93ceb3 662:ebb602d8b3f2
174 self.addMenuItem([u"◉", presence], [u"◉", html], '', base_menu.MenuCmd(self, 'changePresenceCb', presence), asHTML=True) 174 self.addMenuItem([u"◉", presence], [u"◉", html], '', base_menu.MenuCmd(self, 'changePresenceCb', presence), asHTML=True)
175 self.parent_panel = parent 175 self.parent_panel = parent
176 176
177 def changePresenceCb(self, presence=''): 177 def changePresenceCb(self, presence=''):
178 """Callback to notice the backend of a new presence set by the user. 178 """Callback to notice the backend of a new presence set by the user.
179 @param presence (str): the new presence is a value in ('', 'chat', 'away', 'dnd', 'xa') 179 @param presence (unicode): the new presence is a value in ('', 'chat', 'away', 'dnd', 'xa')
180 """ 180 """
181 self.host.bridge.call('setStatus', None, presence, self.parent_panel.status_panel.status) 181 self.host.bridge.call('setStatus', None, presence, self.parent_panel.status_panel.status)
182 182
183 @classmethod 183 @classmethod
184 def getCategoryHTML(cls, menu_name_i18n, type_): 184 def getCategoryHTML(cls, menu_name_i18n, type_):