From 597d7ce1cd6574af59375b15e6fe47766a386d44 Mon Sep 17 00:00:00 2001 From: Eloi BAIL <eloi.bail@savoirfairelinux.com> Date: Fri, 20 Mar 2015 10:01:20 -0400 Subject: [PATCH] Tool: update controler with new account API Refs #68913 Change-Id: I9f907f8d3a35c27f5414eedfde29d662be7eece9 --- daemon/tools/dringctrl/controler.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/daemon/tools/dringctrl/controler.py b/daemon/tools/dringctrl/controler.py index 98bd32113e..e71b2c46b6 100644 --- a/daemon/tools/dringctrl/controler.py +++ b/daemon/tools/dringctrl/controler.py @@ -294,7 +294,7 @@ class DRingCtrl(Thread): def isAccountRegistered(self, account=None): """Return True if the account is registered. If no account is provided, active account is used""" - return self.getAccountDetails(self._valid_account(account))['Account.registrationStatus'] in ('READY', 'REGISTERED') + return self.getVolatileAccountDetails(self._valid_account(account))['Account.registrationStatus'] in ('READY', 'REGISTERED') def isAccountOfType(self, account_type, account=None): """Return True if the account type is the given one. If no account is provided, active account is used""" @@ -327,6 +327,14 @@ class DRingCtrl(Thread): return self.configurationmanager.getAccountDetails(account) return [] + def getVolatileAccountDetails(self, account=None): + """Return a list of string. If no account is provided, active account is used""" + + account = self._valid_account(account) + if self.isAccountExists(account): + return self.configurationmanager.getVolatileAccountDetails(account) + return [] + def setActiveCodecList(self, account=None, codec_list=''): """Activate given codecs on an account. If no account is provided, active account is used""" -- GitLab