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
0b277697
Commit
0b277697
authored
Jan 31, 2011
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed code to work with unicode display names from latest sipsimple API
parent
806e0a27
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
__init__.py
blink/__init__.py
+1
-1
accounts.py
blink/accounts.py
+1
-1
account.py
blink/configuration/account.py
+1
-1
No files found.
blink/__init__.py
View file @
0b277697
...
@@ -135,7 +135,7 @@ class Blink(QApplication):
...
@@ -135,7 +135,7 @@ class Blink(QApplication):
account
=
account_manager
.
get_account
(
account_id
)
account
=
account_manager
.
get_account
(
account_id
)
except
KeyError
:
except
KeyError
:
account
=
Account
(
account_id
)
account
=
Account
(
account_id
)
account
.
display_name
=
data
[
'display_name'
]
account
.
display_name
=
data
[
'display_name'
]
.
decode
(
'utf-8'
)
default_account
=
account
default_account
=
account
else
:
else
:
default_account
=
account_manager
.
default_account
default_account
=
account_manager
.
default_account
...
...
blink/accounts.py
View file @
0b277697
...
@@ -410,7 +410,7 @@ class AddAccountDialog(base_class, ui_class):
...
@@ -410,7 +410,7 @@ class AddAccountDialog(base_class, ui_class):
def
_initialize
(
self
):
def
_initialize
(
self
):
self
.
display_name
=
user_info
.
fullname
self
.
display_name
=
user_info
.
fullname
self
.
username
=
user_info
.
username
.
lower
()
.
replace
(
' '
,
'.'
)
self
.
username
=
user_info
.
username
.
lower
()
.
replace
(
u' '
,
u
'.'
)
self
.
sip_address
=
u''
self
.
sip_address
=
u''
self
.
password
=
u''
self
.
password
=
u''
self
.
verify_password
=
u''
self
.
verify_password
=
u''
...
...
blink/configuration/account.py
View file @
0b277697
...
@@ -66,7 +66,7 @@ class XCAPSettingsExtension(XCAPSettings):
...
@@ -66,7 +66,7 @@ class XCAPSettingsExtension(XCAPSettings):
class
AccountExtension
(
SettingsObjectExtension
):
class
AccountExtension
(
SettingsObjectExtension
):
display_name
=
Setting
(
type
=
str
,
default
=
user_info
.
fullname
,
nillable
=
True
)
display_name
=
Setting
(
type
=
unicode
,
default
=
user_info
.
fullname
,
nillable
=
True
)
message_summary
=
MessageSummarySettingsExtension
message_summary
=
MessageSummarySettingsExtension
msrp
=
MSRPSettingsExtension
msrp
=
MSRPSettingsExtension
nat_traversal
=
NATTraversalSettingsExtension
nat_traversal
=
NATTraversalSettingsExtension
...
...
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