Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
ea52823c
Commit
ea52823c
authored
Mar 30, 2011
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed duplicate account detection
parent
9e7616b8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
accounts.py
blink/accounts.py
+3
-2
No files found.
blink/accounts.py
View file @
ea52823c
...
@@ -24,7 +24,8 @@ from application.python.util import Null
...
@@ -24,7 +24,8 @@ from application.python.util import Null
from
gnutls.errors
import
GNUTLSError
from
gnutls.errors
import
GNUTLSError
from
zope.interface
import
implements
from
zope.interface
import
implements
from
sipsimple.account
import
Account
,
AccountExists
,
AccountManager
,
BonjourAccount
from
sipsimple.account
import
Account
,
AccountManager
,
BonjourAccount
from
sipsimple.configuration
import
DuplicateIDError
from
sipsimple.configuration.settings
import
SIPSimpleSettings
from
sipsimple.configuration.settings
import
SIPSimpleSettings
from
sipsimple.threading
import
run_in_thread
from
sipsimple.threading
import
run_in_thread
from
sipsimple.util
import
user_info
from
sipsimple.util
import
user_info
...
@@ -449,7 +450,7 @@ class AddAccountDialog(base_class, ui_class):
...
@@ -449,7 +450,7 @@ class AddAccountDialog(base_class, ui_class):
account_manager
=
AccountManager
()
account_manager
=
AccountManager
()
try
:
try
:
account
=
Account
(
response_data
[
'sip_address'
])
account
=
Account
(
response_data
[
'sip_address'
])
except
AccountExists
:
except
DuplicateIDError
:
account
=
account_manager
.
get_account
(
response_data
[
'sip_address'
])
account
=
account_manager
.
get_account
(
response_data
[
'sip_address'
])
account
.
enabled
=
True
account
.
enabled
=
True
account
.
display_name
=
display_name
account
.
display_name
=
display_name
...
...
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