Skip to content
Snippets Groups Projects
Commit 597d7ce1 authored by Eloi Bail's avatar Eloi Bail Committed by Gerrit Code Review
Browse files

Tool: update controler with new account API

Refs #68913

Change-Id: I9f907f8d3a35c27f5414eedfde29d662be7eece9
parent 338d3224
Branches
Tags
No related merge requests found
...@@ -294,7 +294,7 @@ class DRingCtrl(Thread): ...@@ -294,7 +294,7 @@ class DRingCtrl(Thread):
def isAccountRegistered(self, account=None): def isAccountRegistered(self, account=None):
"""Return True if the account is registered. If no account is provided, active account is used""" """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): 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""" """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): ...@@ -327,6 +327,14 @@ class DRingCtrl(Thread):
return self.configurationmanager.getAccountDetails(account) return self.configurationmanager.getAccountDetails(account)
return [] 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=''): def setActiveCodecList(self, account=None, codec_list=''):
"""Activate given codecs on an account. If no account is provided, active account is used""" """Activate given codecs on an account. If no account is provided, active account is used"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment