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
This commit is contained in:
parent
561cc93a04
commit
f0b2c7dea3
1 changed files with 103 additions and 83 deletions
|
|
@ -180,6 +180,9 @@ class DBusBridgeFrontend(BridgeFrontend):
|
|||
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())
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue