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
86d63638
Commit
86d63638
authored
Jun 29, 2010
by
Luci Stanescu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced SessionItem.remote_party_name attribute with name
parent
97793a6d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
sessions.py
blink/sessions.py
+4
-5
No files found.
blink/sessions.py
View file @
86d63638
...
@@ -55,7 +55,6 @@ class SessionItem(QObject):
...
@@ -55,7 +55,6 @@ class SessionItem(QObject):
super
(
SessionItem
,
self
)
.
__init__
()
super
(
SessionItem
,
self
)
.
__init__
()
if
(
audio_stream
,
video_stream
)
==
(
None
,
None
):
if
(
audio_stream
,
video_stream
)
==
(
None
,
None
):
raise
ValueError
(
'SessionItem must represent at least one audio or video stream'
)
raise
ValueError
(
'SessionItem must represent at least one audio or video stream'
)
self
.
name
=
name
self
.
uri
=
uri
self
.
uri
=
uri
self
.
session
=
session
self
.
session
=
session
self
.
contact
=
contact
self
.
contact
=
contact
...
@@ -81,11 +80,11 @@ class SessionItem(QObject):
...
@@ -81,11 +80,11 @@ class SessionItem(QObject):
if
self
.
audio_stream
is
None
:
if
self
.
audio_stream
is
None
:
self
.
hold_tone
=
Null
self
.
hold_tone
=
Null
self
.
remote_party_
name
=
contact
.
name
if
contact
else
None
self
.
name
=
contact
.
name
if
contact
else
None
if
not
self
.
remote_party_
name
:
if
not
self
.
name
:
address
=
'
%
s@
%
s'
%
(
uri
.
user
,
uri
.
host
)
address
=
'
%
s@
%
s'
%
(
uri
.
user
,
uri
.
host
)
match
=
re
.
match
(
r'^(?P<number>(\+|00)[1-9][0-9]\d{5,15})@(\d{1,3}\.){3}\d{1,3}$'
,
address
)
match
=
re
.
match
(
r'^(?P<number>(\+|00)[1-9][0-9]\d{5,15})@(\d{1,3}\.){3}\d{1,3}$'
,
address
)
self
.
remote_party_
name
=
name
or
(
match
.
group
(
'number'
)
if
match
else
address
)
self
.
name
=
name
or
(
match
.
group
(
'number'
)
if
match
else
address
)
self
.
timer
.
timeout
.
connect
(
self
.
_SH_TimerFired
)
self
.
timer
.
timeout
.
connect
(
self
.
_SH_TimerFired
)
notification_center
=
NotificationCenter
()
notification_center
=
NotificationCenter
()
...
@@ -715,7 +714,7 @@ class SessionWidget(base_class, ui_class):
...
@@ -715,7 +714,7 @@ class SessionWidget(base_class, ui_class):
self
.
mute_button
.
setEnabled
(
False
)
self
.
mute_button
.
setEnabled
(
False
)
self
.
hold_button
.
setEnabled
(
False
)
self
.
hold_button
.
setEnabled
(
False
)
self
.
record_button
.
setEnabled
(
False
)
self
.
record_button
.
setEnabled
(
False
)
self
.
address_label
.
setText
(
session
.
remote_party_
name
)
self
.
address_label
.
setText
(
session
.
name
)
self
.
stream_info_label
.
session_type
=
session
.
type
self
.
stream_info_label
.
session_type
=
session
.
type
self
.
stream_info_label
.
codec_info
=
session
.
codec_info
self
.
stream_info_label
.
codec_info
=
session
.
codec_info
self
.
duration_label
.
value
=
session
.
duration
self
.
duration_label
.
value
=
session
.
duration
...
...
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