summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-06-14 11:05:39 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2007-06-14 11:05:39 +0100
commitb4a34bf6ac17fae4f0cc67f5b5082856f0aa7283 (patch)
treeb47f0a176b83d598b8e23f12e6dbc3433b6a219e /doc
parentdbfb6d7b676d22dc98c3ef88071a9deeffa79648 (diff)
doc/tutorial.txt: @service and @method take dbus_interface=..., not interface=...
Diffstat (limited to 'doc')
-rw-r--r--doc/tutorial.txt8
1 files 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)