~ubuntu-branches/ubuntu/gutsy/dbus-python/gutsy

« back to all changes in this revision

Viewing changes to doc/tutorial.txt

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-06-26 10:28:30 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070626102830-6rh3gy4nvtt1c5z2
Tags: 0.82.0-1ubuntu1
* Merge with Debian; remaining changes:
  - Build a python-dbus-dbg package.
  - debian/rules:
    - Don't remove intermediate stamp files.
    - Don't use optimization for the debug build.
  - debian/python-dbus.postinst:
    - Also remove stale .py[co] files from 2.5 python directories

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
====================
4
4
 
5
5
:Author: Simon McVittie, `Collabora Ltd.`_
6
 
:Date: 2006-01-16
 
6
:Date: 2006-06-14
7
7
 
8
8
.. _`Collabora Ltd.`: http://www.collabora.co.uk/
9
9
 
578
578
        def __init__(self, object_path):
579
579
            dbus.service.Object.__init__(self, dbus.SessionBus(), path)
580
580
 
581
 
        @dbus.service.method(interface='com.example.Sample',
 
581
        @dbus.service.method(dbus_interface='com.example.Sample',
582
582
                             in_signature='v', out_signature='s')
583
583
        def StringifyVariant(self, variant):
584
584
            return str(variant)
606
606
        def __init__(self, object_path):
607
607
            dbus.service.Object.__init__(self, dbus.SessionBus(), path)
608
608
 
609
 
        @dbus.service.method(interface='com.example.Sample',
 
609
        @dbus.service.method(dbus_interface='com.example.Sample',
610
610
                             in_signature='', out_signature='s',
611
611
                             sender_keyword='sender')
612
612
        def SayHello(self, sender=None):
629
629
        def __init__(self, object_path):
630
630
            dbus.service.Object.__init__(self, dbus.SessionBus(), path)
631
631
 
632
 
        @dbus.service.signal(interface='com.example.Sample',
 
632
        @dbus.service.signal(dbus_interface='com.example.Sample',
633
633
                             signature='us')
634
634
        def NumberOfBottlesChanged(self, number, contents):
635
635
            print "%d bottles of %s on the wall" % (number, contents)