Commit 05fc2cb0 authored by Dan Pascu's avatar Dan Pascu

Replaced TimestampedNotificationData with NotificationData

parent 8236c4be
...@@ -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=TimestampedNotificationData(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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment