Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in / Register
Toggle navigation
J
jami-daemon
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
120
Issues
120
List
Boards
Labels
Milestones
Security & Compliance
Security & Compliance
Dependency List
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
savoirfairelinux
jami-daemon
Commits
597d7ce1
Commit
597d7ce1
authored
Mar 20, 2015
by
Éloi Bail
Committed by
Gerrit Code Review
Mar 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tool: update controler with new account API
Refs #68913 Change-Id: I9f907f8d3a35c27f5414eedfde29d662be7eece9
parent
338d3224
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
daemon/tools/dringctrl/controler.py
daemon/tools/dringctrl/controler.py
+9
-1
No files found.
daemon/tools/dringctrl/controler.py
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"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment