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
05fc2cb0
Commit
05fc2cb0
authored
Jul 30, 2012
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced TimestampedNotificationData with NotificationData
parent
8236c4be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
__init__.py
blink/__init__.py
+2
-3
No files found.
blink/__init__.py
View file @
05fc2cb0
...
@@ -15,7 +15,7 @@ from collections import defaultdict
...
@@ -15,7 +15,7 @@ from collections import defaultdict
import
cjson
import
cjson
from
PyQt4.QtGui
import
QApplication
from
PyQt4.QtGui
import
QApplication
from
application
import
log
from
application
import
log
from
application.notification
import
IObserver
,
NotificationCenter
from
application.notification
import
IObserver
,
NotificationCenter
,
NotificationData
from
application.python
import
Null
from
application.python
import
Null
from
application.system
import
host
,
makedirs
,
unlink
from
application.system
import
host
,
makedirs
,
unlink
from
eventlet
import
api
from
eventlet
import
api
...
@@ -29,7 +29,6 @@ from sipsimple.configuration.settings import SIPSimpleSettings
...
@@ -29,7 +29,6 @@ from sipsimple.configuration.settings import SIPSimpleSettings
from
sipsimple.storage
import
FileStorage
from
sipsimple.storage
import
FileStorage
from
sipsimple.threading
import
run_in_twisted_thread
from
sipsimple.threading
import
run_in_twisted_thread
from
sipsimple.threading.green
import
run_in_green_thread
from
sipsimple.threading.green
import
run_in_green_thread
from
sipsimple.util
import
TimestampedNotificationData
from
blink.configuration.account
import
AccountExtension
,
BonjourAccountExtension
from
blink.configuration.account
import
AccountExtension
,
BonjourAccountExtension
from
blink.configuration.datatypes
import
InvalidToken
from
blink.configuration.datatypes
import
InvalidToken
...
@@ -68,7 +67,7 @@ class IPAddressMonitor(object):
...
@@ -68,7 +67,7 @@ class IPAddressMonitor(object):
if
new_address
!=
host
.
default_ip
:
if
new_address
!=
host
.
default_ip
:
continue
continue
if
new_address
!=
current_address
:
if
new_address
!=
current_address
:
notification_center
.
post_notification
(
name
=
'SystemIPAddressDidChange'
,
sender
=
self
,
data
=
Timestamped
NotificationData
(
old_ip_address
=
current_address
,
new_ip_address
=
new_address
))
notification_center
.
post_notification
(
name
=
'SystemIPAddressDidChange'
,
sender
=
self
,
data
=
NotificationData
(
old_ip_address
=
current_address
,
new_ip_address
=
new_address
))
current_address
=
new_address
current_address
=
new_address
api
.
sleep
(
5
)
api
.
sleep
(
5
)
...
...
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