Commit 10eaf857 authored by Dan Pascu's avatar Dan Pascu

Adapted to the latest API changes in middleware

parent a71c6f39
...@@ -25,8 +25,8 @@ from zope.interface import implements ...@@ -25,8 +25,8 @@ from zope.interface import implements
from sipsimple.account import Account, AccountManager, BonjourAccount from sipsimple.account import Account, AccountManager, BonjourAccount
from sipsimple.application import SIPApplication from sipsimple.application import SIPApplication
from sipsimple.configuration.backend.file import FileBackend
from sipsimple.configuration.settings import SIPSimpleSettings from sipsimple.configuration.settings import SIPSimpleSettings
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, makedirs from sipsimple.util import TimestampedNotificationData, makedirs
...@@ -226,6 +226,6 @@ class Blink(QApplication): ...@@ -226,6 +226,6 @@ class Blink(QApplication):
self.first_run = True self.first_run = True
notification_center = NotificationCenter() notification_center = NotificationCenter()
notification_center.add_observer(self, sender=self.application) notification_center.add_observer(self, sender=self.application)
self.application.start(FileBackend(ApplicationData.get('config'))) self.application.start(FileStorage(ApplicationData.directory))
...@@ -568,7 +568,7 @@ class ServerToolsWebView(QWebView): ...@@ -568,7 +568,7 @@ class ServerToolsWebView(QWebView):
handler(notification) handler(notification)
def _NH_CFGSettingsObjectDidChange(self, notification): def _NH_CFGSettingsObjectDidChange(self, notification):
if 'id' in notification.data.modified or 'auth.password' in notification.data.modified: if '__id__' in notification.data.modified or 'auth.password' in notification.data.modified:
self.authenticated = False self.authenticated = False
self.reload() self.reload()
......
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