diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2010-02-11 11:00:31 +1100 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2010-02-11 11:00:31 +1100 |
commit | c9628062f10e20937eae9a6010b78fc93242d799 (patch) | |
tree | 22532e7dd74ca4e6f194a37834b212958cf75d8d | |
parent | e80a1ffa082d1054539fe2c1b75e279f2a0a51f9 (diff) |
Fix Approver to use current tp-python API
-rw-r--r-- | docs/examples/python_mc5_clients/approver.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/examples/python_mc5_clients/approver.py b/docs/examples/python_mc5_clients/approver.py index 4804d89..7ccab83 100644 --- a/docs/examples/python_mc5_clients/approver.py +++ b/docs/examples/python_mc5_clients/approver.py @@ -2,15 +2,14 @@ import dbus.glib import gobject import telepathy -from telepathy._generated.Client_Approver import ClientApprover -from telepathy.server.properties import DBusProperties +from telepathy.server import Approver, DBusProperties from telepathy.interfaces import CLIENT, \ CLIENT_APPROVER, \ CHANNEL DBUS_PROPERTIES = "org.freedesktop.DBus.Properties" -class ExampleApprover(ClientApprover, DBusProperties): +class ExampleApprover(Approver, DBusProperties): properties = { CLIENT: { 'Interfaces': [ CLIENT_APPROVER ], @@ -28,7 +27,7 @@ class ExampleApprover(ClientApprover, DBusProperties): object_path = '/' + bus_name.replace('.', '/') bus_name = dbus.service.BusName(bus_name, bus=dbus.SessionBus()) - ClientApprover.__init__(self, bus_name, object_path) + Approver.__init__(self, bus_name, object_path) def GetAll(self, interface): print "GetAll", interface |