Commit 46e6171e authored by Devaev Maxim's avatar Devaev Maxim

Refactoring

parent 77388c96
...@@ -77,6 +77,8 @@ class CustomObject(dbus.service.Object) : ...@@ -77,6 +77,8 @@ class CustomObject(dbus.service.Object) :
def service(self) : def service(self) :
return self._service return self._service
###
def addToConnection(self, connection = None, path = None) : def addToConnection(self, connection = None, path = None) :
self.add_to_connection(connection, path) self.add_to_connection(connection, path)
...@@ -86,11 +88,11 @@ class CustomObject(dbus.service.Object) : ...@@ -86,11 +88,11 @@ class CustomObject(dbus.service.Object) :
class FunctionObject(CustomObject) : class FunctionObject(CustomObject) :
def __init__(self, object_path, shared_path, service) : def __init__(self, object_path, shared_path, service) :
CustomObject.__init__(self, dbus_tools.joinPath(config.value(config.APPLICATION_SECTION, CustomObject.__init__(self, dbus_tools.joinPath(config.value(config.APPLICATION_SECTION, "service_path"),
"service_path"), "functions", object_path), shared_path, service) "functions", object_path), shared_path, service)
class ActionObject(CustomObject) : class ActionObject(CustomObject) :
def __init__(self, object_path, shared_path, service) : def __init__(self, object_path, shared_path, service) :
CustomObject.__init__(self, dbus_tools.joinPath(config.value(config.APPLICATION_SECTION, CustomObject.__init__(self, dbus_tools.joinPath(config.value(config.APPLICATION_SECTION, "service_path"),
"service_path"), "actions", object_path), shared_path, service) "actions", object_path), shared_path, service)
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