Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
597d7ce1
Commit
597d7ce1
authored
10 years ago
by
Eloi Bail
Committed by
Gerrit Code Review
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Tool: update controler with new account API
Refs #68913 Change-Id: I9f907f8d3a35c27f5414eedfde29d662be7eece9
parent
338d3224
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
daemon/tools/dringctrl/controler.py
+9
-1
9 additions, 1 deletion
daemon/tools/dringctrl/controler.py
with
9 additions
and
1 deletion
daemon/tools/dringctrl/controler.py
+
9
−
1
View file @
597d7ce1
...
...
@@ -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
.
get
Volatile
AccountDetails
(
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
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment