Rework to not use protected API

This commit is contained in:
Marco Pesenti Gritti
2006-08-07 11:08:10 +02:00
parent 167dbec0f5
commit d919848324
4 changed files with 11 additions and 6 deletions
+3 -2
View File
@@ -37,7 +37,8 @@ class ChatShellDbusService(dbus.service.Object):
object_path = '/com/redhat/Sugar/Chat'
dbus.service.Object.__init__(self, bus_name, object_path)
@dbus.service.method('com.redhat.Sugar.ChatShell')
@dbus.service.method('com.redhat.Sugar.ChatShell',
in_signature="o", out_signature="")
def open_chat(self, service_path):
self._parent.open_chat_from_path(service_path)
@@ -75,7 +76,7 @@ class ChatListener:
return
def open_chat_from_path(self, service_path):
service = self._pservice._new_object(service_path)
service = self._pservice.get(service_path)
self.open_chat(service)
def open_chat(self, service):