diff src/bridge/bridge_constructor/constructors/embedded/embedded_template.py @ 2091:f413bfc24458

bridge, quick_frontend: preparation for async bridge bridge can currently have sync and async methods. This commit prepare the transition to fully async bridges: - a new bridgeConnect method must be called to prepare the bridge - quick app, quick profile manager: changed sync calls to async ones - quick app: bridgeConnect can be called automatically or manually depending on connect_bridge parameter of QuickApp
author Goffi <goffi@goffi.org>
date Tue, 13 Dec 2016 22:27:48 +0100
parents 159250d66407
children e0066920a661
line wrap: on
line diff
--- a/src/bridge/bridge_constructor/constructors/embedded/embedded_template.py	Sun Dec 04 21:35:23 2016 +0100
+++ b/src/bridge/bridge_constructor/constructors/embedded/embedded_template.py	Tue Dec 13 22:27:48 2016 +0100
@@ -31,6 +31,9 @@
             "plugin": {}
             }
 
+    def bridgeConnect(self, callback, errback):
+        callback()
+
     def register_method(self, name, callback):
         log.debug(u"registering embedded bridge method [{}]".format(name))
         if name in self._methods_cbs: