comparison src/bridge/bridge_constructor/dbus_frontend_template.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
58 error(_('Unknown interface')) 58 error(_('Unknown interface'))
59 59
60 ##METHODS_PART## 60 ##METHODS_PART##
61 61
62 #methods from plugins 62 #methods from plugins
63 def getRoomsJoined(self, profile_key='@DEFAULT@'): 63 def getRoomsJoined(self, profile_key):
64 return self.db_plugin_iface.getRoomsJoined(profile_key) 64 return self.db_plugin_iface.getRoomsJoined(profile_key)
65 65
66 def getRoomsSubjectss(self, profile_key='@DEFAULT@'): 66 def getRoomsSubjectss(self, profile_key):
67 return self.db_plugin_iface.getRoomsSubjectss(profile_key) 67 return self.db_plugin_iface.getRoomsSubjectss(profile_key)
68 68
69 def joinMUC(self, room_jid, nick, options, profile_key='@DEFAULT@'): 69 def joinMUC(self, room_jid, nick, options, profile_key):
70 if options == None: 70 if options == None:
71 options = [('', '')] #XXX: we have to do this awful hack because python dbus need to guess the signature 71 options = [('', '')] #XXX: we have to do this awful hack because python dbus need to guess the signature
72 return self.db_plugin_iface.joinMUC(room_jid, nick, options, profile_key) 72 return self.db_plugin_iface.joinMUC(room_jid, nick, options, profile_key)
73 73
74 def tarotGameLaunch(self, players, profile_key='@DEFAULT@'): 74 def tarotGameLaunch(self, players, profile_key):
75 return self.db_plugin_iface.tarotGameLaunch(players, profile_key) 75 return self.db_plugin_iface.tarotGameLaunch(players, profile_key)
76 76
77 def tarotGameCreate(self, room_jid, players, profile_key='@DEFAULT@'): 77 def tarotGameCreate(self, room_jid, players, profile_key):
78 return self.db_plugin_iface.tarotGameCreate(room_jid, players, profile_key) 78 return self.db_plugin_iface.tarotGameCreate(room_jid, players, profile_key)
79 79
80 def tarotGameReady(self, player, referee, profile_key='@DEFAULT@'): 80 def tarotGameReady(self, player, referee, profile_key):
81 return self.db_plugin_iface.tarotGameReady(player, referee, profile_key) 81 return self.db_plugin_iface.tarotGameReady(player, referee, profile_key)
82 82
83 def tarotGameContratChoosed(self, player, referee, contrat, profile_key='@DEFAULT@'): 83 def tarotGameContratChoosed(self, player, referee, contrat, profile_key):
84 return self.db_plugin_iface.tarotGameContratChoosed(player, referee, contrat, profile_key) 84 return self.db_plugin_iface.tarotGameContratChoosed(player, referee, contrat, profile_key)
85 85
86 def tarotGamePlayCards(self, player, referee, cards, profile_key='@DEFAULT@'): 86 def tarotGamePlayCards(self, player, referee, cards, profile_key):
87 return self.db_plugin_iface.tarotGamePlayCards(player, referee, cards, profile_key) 87 return self.db_plugin_iface.tarotGamePlayCards(player, referee, cards, profile_key)
88 88
89 def quizGameLaunch(self, players, profile_key='@DEFAULT@'): 89 def quizGameLaunch(self, players, profile_key):
90 return self.db_plugin_iface.quizGameLaunch(players, profile_key) 90 return self.db_plugin_iface.quizGameLaunch(players, profile_key)
91 91
92 def quizGameCreate(self, room_jid, players, profile_key='@DEFAULT@'): 92 def quizGameCreate(self, room_jid, players, profile_key):
93 return self.db_plugin_iface.quizGameCreate(room_jid, players, profile_key) 93 return self.db_plugin_iface.quizGameCreate(room_jid, players, profile_key)
94 94
95 def quizGameReady(self, player, referee, profile_key='@DEFAULT@'): 95 def quizGameReady(self, player, referee, profile_key):
96 return self.db_plugin_iface.quizGameReady(player, referee, profile_key) 96 return self.db_plugin_iface.quizGameReady(player, referee, profile_key)
97 97
98 def quizGameAnswer(self, player, referee, answer, profile_key='@DEFAULT@'): 98 def quizGameAnswer(self, player, referee, answer, profile_key):
99 return self.db_plugin_iface.quizGameAnswer(player, referee, answer, profile_key) 99 return self.db_plugin_iface.quizGameAnswer(player, referee, answer, profile_key)
100 100
101 def sendFile(self, to, path, data, profile_key='@DEFAULT@'): 101 def sendFile(self, to, path, data, profile_key):
102 return self.db_plugin_iface.sendFile(to, path, data, profile_key) 102 return self.db_plugin_iface.sendFile(to, path, data, profile_key)
103 103
104 def pipeOut(self, to, path, data, profile_key='@DEFAULT@'): 104 def pipeOut(self, to, path, data, profile_key):
105 return self.db_plugin_iface.pipeOut(to, path, data, profile_key) 105 return self.db_plugin_iface.pipeOut(to, path, data, profile_key)
106 106
107 def findGateways(self, target, profile_key='@DEFAULT@'): 107 def findGateways(self, target, profile_key):
108 return self.db_plugin_iface.findGateways(target, profile_key) 108 return self.db_plugin_iface.findGateways(target, profile_key)
109 109
110 def getCard(self, target, profile_key='@DEFAULT@'): 110 def getCard(self, target, profile_key):
111 return self.db_plugin_iface.getCard(target, profile_key) 111 return self.db_plugin_iface.getCard(target, profile_key)
112 112
113 def getCardCache(self, target, profile_key='@DEFAULT@'): 113 def getCardCache(self, target, profile_key):
114 return self.db_plugin_iface.getCardCache(target, profile_key) 114 return self.db_plugin_iface.getCardCache(target, profile_key)
115 115
116 def getAvatarFile(self, hash): 116 def getAvatarFile(self, hash):
117 return self.db_plugin_iface.getAvatarFile(hash) 117 return self.db_plugin_iface.getAvatarFile(hash)
118 118
119 def in_band_register(self, target, profile_key='@DEFAULT@'): 119 def in_band_register(self, target, profile_key):
120 return self.db_plugin_iface.in_band_register(target, profile_key) 120 return self.db_plugin_iface.in_band_register(target, profile_key)
121 121
122 def gatewayRegister(self, action, target, data, profile_key='@DEFAULT@'): 122 def gatewayRegister(self, action, target, data, profile_key):
123 if data == None: 123 if data == None:
124 data = [('', '')] #XXX: we have to do this awful hack because python dbus need to guess the signature 124 data = [('', '')] #XXX: we have to do this awful hack because python dbus need to guess the signature
125 return self.db_plugin_iface.gatewayRegister(action, target, data, profile_key) 125 return self.db_plugin_iface.gatewayRegister(action, target, data, profile_key)
126 126
127 def getLastMicroblogs(self, jid, max_items, profile_key='@DEFAULT@', callback=None, errback=None): 127 def getLastMicroblogs(self, jid, max_items, profile_key, callback=None, errback=None):
128 return self.db_plugin_iface.getLastMicroblogs(jid, max_items, profile_key, reply_handler=callback, error_handler=errback) 128 return self.db_plugin_iface.getLastMicroblogs(jid, max_items, profile_key, reply_handler=callback, error_handler=errback)
129 129
130 def getMblogNodes(self, profile_key='@DEFAULT@', callback=None, errback=None): 130 def getMblogNodes(self, profile_key, callback=None, errback=None):
131 return self.db_plugin_iface.getMblogNodes(profile_key, reply_handler=callback, error_handler=errback) 131 return self.db_plugin_iface.getMblogNodes(profile_key, reply_handler=callback, error_handler=errback)
132 132
133 def sendGroupBlog(self, groups, message, profile_key='@DEFAULT@'): 133 def sendGroupBlog(self, groups, message, profile_key):
134 return self.db_plugin_iface.sendGroupBlog(groups, message, profile_key) 134 return self.db_plugin_iface.sendGroupBlog(groups, message, profile_key)
135 135
136 def sendPersonalEvent(self, event_type, data, profile_key='@DEFAULT@'): 136 def sendPersonalEvent(self, event_type, data, profile_key):
137 return self.db_plugin_iface.sendPersonalEvent(event_type, data, profile_key) 137 return self.db_plugin_iface.sendPersonalEvent(event_type, data, profile_key)
138 138
139 def setMicroblogAccess(self, access="presence", profile_key='@DEFAULT@', callback=None, errback=None): 139 def setMicroblogAccess(self, access="presence", profile_key='@DEFAULT@', callback=None, errback=None):
140 return self.db_plugin_iface.setMicroblogAccess(access, profile_key, reply_handler=callback, error_handler=errback) 140 return self.db_plugin_iface.setMicroblogAccess(access, profile_key, reply_handler=callback, error_handler=errback)
141 141