comparison frontends/src/quick_frontend/quick_chat.py @ 1365:ba87b940f07a frontends_multi_profiles

core, quick_frontends: added an "extra" item in getMenus + use of new quick_menus module in QuickApp
author Goffi <goffi@goffi.org>
date Tue, 17 Mar 2015 19:33:05 +0100
parents d3e9848b9574
children 017270e6eea4
comparison
equal deleted inserted replaced
1364:28f0b33ca17c 1365:ba87b940f07a
36 36
37 def __init__(self, host, target, type_=C.CHAT_ONE2ONE, profiles=None): 37 def __init__(self, host, target, type_=C.CHAT_ONE2ONE, profiles=None):
38 """ 38 """
39 @param type_: can be C.CHAT_ONE2ONE for single conversation or C.CHAT_GROUP for chat à la IRC 39 @param type_: can be C.CHAT_ONE2ONE for single conversation or C.CHAT_GROUP for chat à la IRC
40 """ 40 """
41
42 quick_widgets.QuickWidget.__init__(self, host, target, profiles=profiles) 41 quick_widgets.QuickWidget.__init__(self, host, target, profiles=profiles)
43 assert type_ in (C.CHAT_ONE2ONE, C.CHAT_GROUP) 42 assert type_ in (C.CHAT_ONE2ONE, C.CHAT_GROUP)
44 if type_ == C.CHAT_GROUP and target.resource: 43 if type_ == C.CHAT_GROUP and target.resource:
45 raise ValueError("A group chat entity can't have a resource") 44 raise ValueError("A group chat entity can't have a resource")
46 self.current_target = target 45 self.current_target = target