comparison src/bridge/bridge_constructor/dbus_frontend_template.py @ 709:648511e42a69

bridge: removed plugin method definitions from the old static system
author souliane <souliane@mailoo.org>
date Sun, 17 Nov 2013 16:11:55 +0100
parents d207c2186519
children f02e2c277f0c
comparison
equal deleted inserted replaced
708:6aa71c853bf5 709:648511e42a69
92 kwargs['error_handler'] = lambda err: _errback(err._dbus_error_name[len(const_ERROR_PREFIX) + 1:]) 92 kwargs['error_handler'] = lambda err: _errback(err._dbus_error_name[len(const_ERROR_PREFIX) + 1:])
93 93
94 return method(*args, **kwargs) 94 return method(*args, **kwargs)
95 95
96 return getPluginMethod 96 return getPluginMethod
97 ##METHODS_PART##
98
99 #methods from plugins
100
101 def joinMUC(self, room_jid, nick, options, profile_key):
102 if options is None:
103 options = [('', '')] # XXX: we have to do this awful hack because python dbus need to guess the signature
104 return self.db_plugin_iface.joinMUC(room_jid, nick, options, profile_key)
105
106 def gatewayRegister(self, action, target, data, profile_key):
107 if data is None:
108 data = [('', '')] # XXX: we have to do this awful hack because python dbus need to guess the signature
109 return self.db_plugin_iface.gatewayRegister(action, target, data, profile_key)