Mercurial > libervia-backend
diff frontends/src/bridge/DBus.py @ 1023:8bae81e254a2
core: added a getReady method which can be called by frontends to ensure that backend is fully initialised before doing anything + this ckeck is automatically done in asyncConnect
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 15 May 2014 16:02:16 +0200 |
parents | fee00f2e11c2 |
children | 7e43ea75cce8 |
line wrap: on
line diff
--- a/frontends/src/bridge/DBus.py Wed May 14 13:26:23 2014 +0200 +++ b/frontends/src/bridge/DBus.py Thu May 15 16:02:16 2014 +0200 @@ -180,6 +180,9 @@ def getProgress(self, id, profile): return self.db_core_iface.getProgress(id, profile) + def getReady(self, , callback=None, errback=None): + return self.db_core_iface.getReady(reply_handler=callback, error_handler=lambda err:errback(err._dbus_error_name[len(const_ERROR_PREFIX)+1:])) + def getVersion(self, ): return unicode(self.db_core_iface.getVersion())