comparison frontends/src/bridge/DBus.py @ 449:961543b20806

bridge: removed default profile_key in dbus_frontend_template to avoid difficult to find bugs
author Goffi <goffi@goffi.org>
date Mon, 12 Dec 2011 22:24:50 +0100
parents c243f4cb2ad9
children afe9cfd2ddbb
comparison
equal deleted inserted replaced
448:17c7e48bf68f 449:961543b20806
165 def updateContact(self, entity_jid, name, groups, profile_key="@DEFAULT@"): 165 def updateContact(self, entity_jid, name, groups, profile_key="@DEFAULT@"):
166 return self.db_core_iface.updateContact(entity_jid, name, groups, profile_key) 166 return self.db_core_iface.updateContact(entity_jid, name, groups, profile_key)
167 167
168 168
169 #methods from plugins 169 #methods from plugins
170 def getRoomsJoined(self, profile_key='@DEFAULT@'): 170 def getRoomsJoined(self, profile_key):
171 return self.db_plugin_iface.getRoomsJoined(profile_key) 171 return self.db_plugin_iface.getRoomsJoined(profile_key)
172 172
173 def getRoomsSubjectss(self, profile_key='@DEFAULT@'): 173 def getRoomsSubjectss(self, profile_key):
174 return self.db_plugin_iface.getRoomsSubjectss(profile_key) 174 return self.db_plugin_iface.getRoomsSubjectss(profile_key)
175 175
176 def joinMUC(self, room_jid, nick, options, profile_key='@DEFAULT@'): 176 def joinMUC(self, room_jid, nick, options, profile_key):
177 if options == None: 177 if options == None:
178 options = [('', '')] #XXX: we have to do this awful hack because python dbus need to guess the signature 178 options = [('', '')] #XXX: we have to do this awful hack because python dbus need to guess the signature
179 return self.db_plugin_iface.joinMUC(room_jid, nick, options, profile_key) 179 return self.db_plugin_iface.joinMUC(room_jid, nick, options, profile_key)
180 180
181 def tarotGameLaunch(self, players, profile_key='@DEFAULT@'): 181 def tarotGameLaunch(self, players, profile_key):
182 return self.db_plugin_iface.tarotGameLaunch(players, profile_key) 182 return self.db_plugin_iface.tarotGameLaunch(players, profile_key)
183 183
184 def tarotGameCreate(self, room_jid, players, profile_key='@DEFAULT@'): 184 def tarotGameCreate(self, room_jid, players, profile_key):
185 return self.db_plugin_iface.tarotGameCreate(room_jid, players, profile_key) 185 return self.db_plugin_iface.tarotGameCreate(room_jid, players, profile_key)
186 186
187 def tarotGameReady(self, player, referee, profile_key='@DEFAULT@'): 187 def tarotGameReady(self, player, referee, profile_key):
188 return self.db_plugin_iface.tarotGameReady(player, referee, profile_key) 188 return self.db_plugin_iface.tarotGameReady(player, referee, profile_key)
189 189
190 def tarotGameContratChoosed(self, player, referee, contrat, profile_key='@DEFAULT@'): 190 def tarotGameContratChoosed(self, player, referee, contrat, profile_key):
191 return self.db_plugin_iface.tarotGameContratChoosed(player, referee, contrat, profile_key) 191 return self.db_plugin_iface.tarotGameContratChoosed(player, referee, contrat, profile_key)
192 192
193 def tarotGamePlayCards(self, player, referee, cards, profile_key='@DEFAULT@'): 193 def tarotGamePlayCards(self, player, referee, cards, profile_key):
194 return self.db_plugin_iface.tarotGamePlayCards(player, referee, cards, profile_key) 194 return self.db_plugin_iface.tarotGamePlayCards(player, referee, cards, profile_key)
195 195
196 def quizGameLaunch(self, players, profile_key='@DEFAULT@'): 196 def quizGameLaunch(self, players, profile_key):
197 return self.db_plugin_iface.quizGameLaunch(players, profile_key) 197 return self.db_plugin_iface.quizGameLaunch(players, profile_key)
198 198
199 def quizGameCreate(self, room_jid, players, profile_key='@DEFAULT@'): 199 def quizGameCreate(self, room_jid, players, profile_key):
200 return self.db_plugin_iface.quizGameCreate(room_jid, players, profile_key) 200 return self.db_plugin_iface.quizGameCreate(room_jid, players, profile_key)
201 201
202 def quizGameReady(self, player, referee, profile_key='@DEFAULT@'): 202 def quizGameReady(self, player, referee, profile_key):
203 return self.db_plugin_iface.quizGameReady(player, referee, profile_key) 203 return self.db_plugin_iface.quizGameReady(player, referee, profile_key)
204 204
205 def quizGameAnswer(self, player, referee, answer, profile_key='@DEFAULT@'): 205 def quizGameAnswer(self, player, referee, answer, profile_key):
206 return self.db_plugin_iface.quizGameAnswer(player, referee, answer, profile_key) 206 return self.db_plugin_iface.quizGameAnswer(player, referee, answer, profile_key)
207 207
208 def sendFile(self, to, path, data, profile_key='@DEFAULT@'): 208 def sendFile(self, to, path, data, profile_key):
209 return self.db_plugin_iface.sendFile(to, path, data, profile_key) 209 return self.db_plugin_iface.sendFile(to, path, data, profile_key)
210 210
211 def pipeOut(self, to, path, data, profile_key='@DEFAULT@'): 211 def pipeOut(self, to, path, data, profile_key):
212 return self.db_plugin_iface.pipeOut(to, path, data, profile_key) 212 return self.db_plugin_iface.pipeOut(to, path, data, profile_key)
213 213
214 def findGateways(self, target, profile_key='@DEFAULT@'): 214 def findGateways(self, target, profile_key):
215 return self.db_plugin_iface.findGateways(target, profile_key) 215 return self.db_plugin_iface.findGateways(target, profile_key)
216 216
217 def getCard(self, target, profile_key='@DEFAULT@'): 217 def getCard(self, target, profile_key):
218 return self.db_plugin_iface.getCard(target, profile_key) 218 return self.db_plugin_iface.getCard(target, profile_key)
219 219
220 def getCardCache(self, target, profile_key='@DEFAULT@'): 220 def getCardCache(self, target, profile_key):
221 return self.db_plugin_iface.getCardCache(target, profile_key) 221 return self.db_plugin_iface.getCardCache(target, profile_key)
222 222
223 def getAvatarFile(self, hash): 223 def getAvatarFile(self, hash):
224 return self.db_plugin_iface.getAvatarFile(hash) 224 return self.db_plugin_iface.getAvatarFile(hash)
225 225
226 def in_band_register(self, target, profile_key='@DEFAULT@'): 226 def in_band_register(self, target, profile_key):
227 return self.db_plugin_iface.in_band_register(target, profile_key) 227 return self.db_plugin_iface.in_band_register(target, profile_key)
228 228
229 def gatewayRegister(self, action, target, data, profile_key='@DEFAULT@'): 229 def gatewayRegister(self, action, target, data, profile_key):
230 if data == None: 230 if data == None:
231 data = [('', '')] #XXX: we have to do this awful hack because python dbus need to guess the signature 231 data = [('', '')] #XXX: we have to do this awful hack because python dbus need to guess the signature
232 return self.db_plugin_iface.gatewayRegister(action, target, data, profile_key) 232 return self.db_plugin_iface.gatewayRegister(action, target, data, profile_key)
233 233
234 def getLastMicroblogs(self, jid, max_items, profile_key='@DEFAULT@', callback=None, errback=None): 234 def getLastMicroblogs(self, jid, max_items, profile_key, callback=None, errback=None):
235 return self.db_plugin_iface.getLastMicroblogs(jid, max_items, profile_key, reply_handler=callback, error_handler=errback) 235 return self.db_plugin_iface.getLastMicroblogs(jid, max_items, profile_key, reply_handler=callback, error_handler=errback)
236 236
237 def getMblogNodes(self, profile_key='@DEFAULT@', callback=None, errback=None): 237 def getMblogNodes(self, profile_key, callback=None, errback=None):
238 return self.db_plugin_iface.getMblogNodes(profile_key, reply_handler=callback, error_handler=errback) 238 return self.db_plugin_iface.getMblogNodes(profile_key, reply_handler=callback, error_handler=errback)
239 239
240 def sendGroupBlog(self, groups, message, profile_key='@DEFAULT@'): 240 def sendGroupBlog(self, groups, message, profile_key):
241 return self.db_plugin_iface.sendGroupBlog(groups, message, profile_key) 241 return self.db_plugin_iface.sendGroupBlog(groups, message, profile_key)
242 242
243 def sendPersonalEvent(self, event_type, data, profile_key='@DEFAULT@'): 243 def sendPersonalEvent(self, event_type, data, profile_key):
244 return self.db_plugin_iface.sendPersonalEvent(event_type, data, profile_key) 244 return self.db_plugin_iface.sendPersonalEvent(event_type, data, profile_key)
245 245
246 def setMicroblogAccess(self, access="presence", profile_key='@DEFAULT@', callback=None, errback=None): 246 def setMicroblogAccess(self, access="presence", profile_key='@DEFAULT@', callback=None, errback=None):
247 return self.db_plugin_iface.setMicroblogAccess(access, profile_key, reply_handler=callback, error_handler=errback) 247 return self.db_plugin_iface.setMicroblogAccess(access, profile_key, reply_handler=callback, error_handler=errback)