diff src/bridge/bridge_constructor/dbus_core_template.py @ 337:4402ac630712

bridge: async callback managed in bridge_constructor + misc - the new flag async make the method asynchronous - new method asyncConnect (connect which return when the user is connected) - setMicroblogAccess added to DBus frontend
author Goffi <goffi@goffi.org>
date Thu, 26 May 2011 16:47:09 +0200
parents e044d1dc37d1
children eb9d33ba4e36
line wrap: on
line diff
--- a/src/bridge/bridge_constructor/dbus_core_template.py	Wed May 25 17:18:05 2011 +0200
+++ b/src/bridge/bridge_constructor/dbus_core_template.py	Thu May 26 16:47:09 2011 +0200
@@ -108,7 +108,8 @@
         """Dynamically add a signal to Dbus Bridge"""
         attributes = ', '.join(self.__attributes(signature))
 
-        code = compile ('def '+name+' (self,'+attributes+'): debug ("'+name+' signal")', '<DBus bridge>','exec')
+        #code = compile ('def '+name+' (self,'+attributes+'): debug ("'+name+' signal")', '<DBus bridge>','exec') #XXX: the debug is too annoying with xmllog
+        code = compile ('def '+name+' (self,'+attributes+'): pass', '<DBus bridge>','exec')
         exec (code)
         signal = locals()[name]
         setattr(DbusObject, name, dbus.service.signal(