From b4a34bf6ac17fae4f0cc67f5b5082856f0aa7283 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 14 Jun 2007 11:05:39 +0100 Subject: [PATCH] doc/tutorial.txt: @service and @method take dbus_interface=..., not interface=... --- doc/tutorial.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/tutorial.txt b/doc/tutorial.txt index c0b73cb..b51ff68 100644 --- a/doc/tutorial.txt +++ b/doc/tutorial.txt @@ -3,7 +3,7 @@ dbus-python tutorial ==================== :Author: Simon McVittie, `Collabora Ltd.`_ -:Date: 2006-01-16 +:Date: 2006-06-14 .. _`Collabora Ltd.`: http://www.collabora.co.uk/ @@ -578,7 +578,7 @@ example:: def __init__(self, object_path): dbus.service.Object.__init__(self, dbus.SessionBus(), path) - @dbus.service.method(interface='com.example.Sample', + @dbus.service.method(dbus_interface='com.example.Sample', in_signature='v', out_signature='s') def StringifyVariant(self, variant): return str(variant) @@ -606,7 +606,7 @@ passed to the decorated method as a keyword argument of that name:: def __init__(self, object_path): dbus.service.Object.__init__(self, dbus.SessionBus(), path) - @dbus.service.method(interface='com.example.Sample', + @dbus.service.method(dbus_interface='com.example.Sample', in_signature='', out_signature='s', sender_keyword='sender') def SayHello(self, sender=None): @@ -629,7 +629,7 @@ contain code which will be run when called, as usual. For example:: def __init__(self, object_path): dbus.service.Object.__init__(self, dbus.SessionBus(), path) - @dbus.service.signal(interface='com.example.Sample', + @dbus.service.signal(dbus_interface='com.example.Sample', signature='us') def NumberOfBottlesChanged(self, number, contents): print "%d bottles of %s on the wall" % (number, contents) -- 2.11.4.GIT