comparison libervia.py @ 148:8635bc9db9bf

added parameter management to test XMLUI, but it's currently deactivated for security reasons (need some configuration options) + separated mainTabPanel CSS from LiberviaTabPanel
author Goffi <goffi@goffi.org>
date Sun, 09 Dec 2012 23:42:08 +0100
parents d15fbb208ba0
children b17ec3a6a112
comparison
equal deleted inserted replaced
147:60ea800b7237 148:8635bc9db9bf
82 class BridgeCall(LiberviaJsonProxy): 82 class BridgeCall(LiberviaJsonProxy):
83 def __init__(self): 83 def __init__(self):
84 LiberviaJsonProxy.__init__(self, "/json_api", 84 LiberviaJsonProxy.__init__(self, "/json_api",
85 ["getContacts", "addContact", "sendMessage", "sendMblog", "getLastMblogs", "getMassiveLastMblogs", "getProfileJid", "getHistory", "getPresenceStatus", 85 ["getContacts", "addContact", "sendMessage", "sendMblog", "getLastMblogs", "getMassiveLastMblogs", "getProfileJid", "getHistory", "getPresenceStatus",
86 "joinMUC", "getRoomsJoined", "launchTarotGame", "getTarotCardsPaths", "tarotGameReady", "tarotGameContratChoosed", 86 "joinMUC", "getRoomsJoined", "launchTarotGame", "getTarotCardsPaths", "tarotGameReady", "tarotGameContratChoosed",
87 "tarotGamePlayCards", "launchRadioCollective", "getWaitingSub", "subscription", "delContact", "updateContact", "getEntityData"]) 87 "tarotGamePlayCards", "launchRadioCollective", "getWaitingSub", "subscription", "delContact", "updateContact", "getEntityData", "getParamsUI",
88 #"setParam",
89 "launchAction",
90 ])
88 91
89 class BridgeSignals(LiberviaJsonProxy): 92 class BridgeSignals(LiberviaJsonProxy):
90 def __init__(self, host): 93 def __init__(self, host):
91 self.host = host 94 self.host = host
92 LiberviaJsonProxy.__init__(self, "/json_signal_api", 95 LiberviaJsonProxy.__init__(self, "/json_signal_api",
117 self.tab_panel = self.panel.tab_panel 120 self.tab_panel = self.panel.tab_panel
118 self.libervia_widgets = set() #keep track of all actives LiberviaWidgets 121 self.libervia_widgets = set() #keep track of all actives LiberviaWidgets
119 self.room_list = set() #set of rooms 122 self.room_list = set() #set of rooms
120 self.mblog_cache = [] #used to keep our own blog entries in memory, to show them in new mblog panel 123 self.mblog_cache = [] #used to keep our own blog entries in memory, to show them in new mblog panel
121 self.avatars_cache = {} #keep track of jid's avatar hash (key=jid, value=file) 124 self.avatars_cache = {} #keep track of jid's avatar hash (key=jid, value=file)
125 self.current_action_ids = set()
122 #self.discuss_panel.addWidget(panels.EmptyPanel(self)) 126 #self.discuss_panel.addWidget(panels.EmptyPanel(self))
123 self.discuss_panel.addWidget(panels.MicroblogPanel(self, [])) 127 self.discuss_panel.addWidget(panels.MicroblogPanel(self, []))
124 #self.discuss_panel.addWidget(panels.EmptyPanel(self)) 128 #self.discuss_panel.addWidget(panels.EmptyPanel(self))
125 self._register_box = None 129 self._register_box = None
126 RootPanel().add(self.panel) 130 RootPanel().add(self.panel)