plugin groupblog: subscriptions/notifications

This commit is contained in:
Goffi 2012-06-25 00:08:16 +02:00
commit 357374bcd2

View file

@ -34,6 +34,9 @@ const_OBJ_PATH = '/org/goffi/SAT/bridge'
const_CORE_SUFFIX = ".core"
const_PLUGIN_SUFFIX = ".plugin"
class ParseError(Exception):
pass
class MethodNotRegistered(dbus.DBusException):
_dbus_error_name = const_ERROR_PREFIX + ".MethodNotRegistered"
@ -50,7 +53,7 @@ class GenericException(dbus.DBusException):
def __init__(self, twisted_error):
super(GenericException,self).__init__()
mess = twisted_error.getErrorMessage()
self._dbus_error_name = const_ERROR_PREFIX+"."+ (mess or str(err.__class__))
self._dbus_error_name = const_ERROR_PREFIX+"."+ (mess or str(twisted_error.__class__))
class DbusObject(dbus.service.Object):