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
cbb87ec3
Commit
cbb87ec3
authored
Jul 05, 2013
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed some variables
parent
1c554471
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
history.py
blink/history.py
+8
-8
No files found.
blink/history.py
View file @
cbb87ec3
...
...
@@ -100,21 +100,21 @@ class HistoryEntry(object):
else
:
duration
=
None
remote_identity
=
session
.
remote_identity
remote_uri
_str
=
'
%
s@
%
s'
%
(
remote_identity
.
uri
.
user
,
remote_identity
.
uri
.
host
)
remote_uri
=
'
%
s@
%
s'
%
(
remote_identity
.
uri
.
user
,
remote_identity
.
uri
.
host
)
try
:
contact
=
next
(
contact
for
contact
in
AddressbookManager
()
.
get_contacts
()
if
remote_uri
_str
in
(
addr
.
uri
for
addr
in
contact
.
uris
))
contact
=
next
(
contact
for
contact
in
AddressbookManager
()
.
get_contacts
()
if
remote_uri
in
(
addr
.
uri
for
addr
in
contact
.
uris
))
except
StopIteration
:
display_name
=
remote_identity
.
display_name
else
:
display_name
=
contact
.
name
match
=
self
.
phone_number_re
.
match
(
remote_uri
_str
)
match
=
self
.
phone_number_re
.
match
(
remote_uri
)
if
match
:
remote_uri
_str
=
match
.
group
(
'number'
)
if
display_name
and
display_name
!=
remote_uri
_str
:
remote_identity
_str
=
'
%
s <
%
s>'
%
(
display_name
,
remote_uri_str
)
remote_uri
=
match
.
group
(
'number'
)
if
display_name
and
display_name
!=
remote_uri
:
remote_identity
=
'
%
s <
%
s>'
%
(
display_name
,
remote_uri
)
else
:
remote_identity
_str
=
remote_uri_str
return
cls
(
remote_identity
_str
,
remote_uri_str
,
unicode
(
session
.
account
.
id
),
call_time
,
duration
)
remote_identity
=
remote_uri
return
cls
(
remote_identity
,
remote_uri
,
unicode
(
session
.
account
.
id
),
call_time
,
duration
)
def
__unicode__
(
self
):
if
self
.
call_time
:
...
...
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