Fix NotFoundError

This commit is contained in:
Dan Williams 2007-04-25 22:37:58 -04:00
parent 549a2df403
commit 8600a48fa2

View File

@ -18,9 +18,15 @@
import gobject import gobject
import dbus, dbus.service, dbus.glib import dbus, dbus.service, dbus.glib
_PRESENCE_SERVICE = "org.laptop.Sugar.Presence"
_PRESENCE_INTERFACE = "org.laptop.Sugar.Presence"
_PRESENCE_TEST_INTERFACE = "org.laptop.Sugar.Presence._Test"
_PRESENCE_PATH = "/org/laptop/Sugar/Presence"
class NotFoundError(dbus.DBusException): class NotFoundError(dbus.DBusException):
def __init__(self): def __init__(self, msg=None):
dbus.DBusException.__init__(self) dbus.DBusException.__init__(self, msg)
self._dbus_error_name = _PRESENCE_INTERFACE + '.NotFound' self._dbus_error_name = _PRESENCE_INTERFACE + '.NotFound'
@ -227,11 +233,6 @@ class TestOwner(TestBuddy):
self._owner = True self._owner = True
_PRESENCE_SERVICE = "org.laptop.Sugar.Presence"
_PRESENCE_INTERFACE = "org.laptop.Sugar.Presence"
_PRESENCE_TEST_INTERFACE = "org.laptop.Sugar.Presence._Test"
_PRESENCE_PATH = "/org/laptop/Sugar/Presence"
class TestPresenceService(dbus.service.Object): class TestPresenceService(dbus.service.Object):
"""A test D-Bus PresenceService used to exercise the Sugar PS bindings.""" """A test D-Bus PresenceService used to exercise the Sugar PS bindings."""