dbus/doc TODO,1.87,1.88 dbus-tutorial.xml,1.15,1.16

John Palmieri johnp at freedesktop.org
Sat Jul 16 01:21:47 EST 2005


Update of /cvs/dbus/dbus/doc
In directory gabe:/tmp/cvs-serv27299/doc

Modified Files:
	TODO dbus-tutorial.xml 
Log Message:
* bus/dispatch.c, test/test-service.c: Add testcase
  for sending messages to oneself (TODO item).

* python/service.py (class Object): Swap ordering of bus_name 
  and object_path parameters to better support inheritance.

* doc/dbus-tutorial.xml: change Python docs to reflect change
  in parameter ordering and fix the inheritance section.

* doc/TODO: remove sending message to oneself TODO item


Index: TODO
===================================================================
RCS file: /cvs/dbus/dbus/doc/TODO,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -d -r1.87 -r1.88
--- TODO	12 Jul 2005 18:16:05 -0000	1.87
+++ TODO	15 Jul 2005 15:21:43 -0000	1.88
@@ -12,10 +12,6 @@
    dbus-marshal-recursive.c (this is mostly done now, just needs some
    cleanup)
 
- - need to define bus behavior if you send a message to 
-   yourself; is it an error, or allowed? If allowed, 
-   we need to have a test for it in the test suite.
-
  - just before 1.0, try a HAVE_INT64=0 build and be sure it runs
 
  - dbus-pending-call.c has some API and thread safety issues to review

Index: dbus-tutorial.xml
===================================================================
RCS file: /cvs/dbus/dbus/doc/dbus-tutorial.xml,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- dbus-tutorial.xml	15 Jul 2005 02:15:08 -0000	1.15
+++ dbus-tutorial.xml	15 Jul 2005 15:21:43 -0000	1.16
@@ -7,8 +7,8 @@
 <article id="index">
   <articleinfo>
     <title>D-BUS Tutorial</title>
-    <releaseinfo>Version 0.4</releaseinfo>
-    <date>14 July 2005</date>
+    <releaseinfo>Version 0.4.1</releaseinfo>
+    <date>15 July 2005</date>
     <authorgroup>
       <author>
 	<firstname>Havoc</firstname>
@@ -1479,8 +1479,8 @@
     import dbus.glib
 
 class HelloWorldObject(dbus.service.Object):
-    def __init__(self, bus_name):
-        dbus.service.Object.__init__(self, '/org/freedesktop/HelloWorldObject', bus_name)
+    def __init__(self, bus_name, object_path='/org/freedesktop/HelloWorldObject'):
+        dbus.service.Object.__init__(self, bus_name, object_path)
 
 session_bus = dbus.SessionBus()
 bus_name = dbus.service.BusName('org.freedesktop.HelloWorld', bus=session_bus)
@@ -1506,8 +1506,8 @@
     import dbus.glib
 
 class HelloWorldObject(dbus.service.Object):
-    def __init__(self, bus_name):
-        dbus.service.Object.__init__(self, '/org/freedesktop/HelloWorldObject', bus_name)
+    def __init__(self, bus_name, object_path='/org/freedesktop/HelloWorldObject'):
+        dbus.service.Object.__init__(self, bus_name, object_path)
 
     @dbus.service.method('org.freedesktop.HelloWorldIFace')
     def hello(self):
@@ -1578,8 +1578,8 @@
     import dbus.glib
 
 class HelloWorldObject(dbus.service.Object):
-    def __init__(self, bus_name):
-        dbus.service.Object.__init__(self, '/org/freedesktop/HelloWorldObject', bus_name)
+    def __init__(self, bus_name, object_path='/org/freedesktop/HelloWorldObject'):
+        dbus.service.Object.__init__(self, bus_name, object_path)
 
     @dbus.service.method('org.freedesktop.HelloWorldIFace')
     def hello(self):
@@ -1614,8 +1614,8 @@
 	Let's inherit from the HelloWorldObject example above and overide the hello method to say goodbye.
 <programlisting>
 class HelloWorldGoodbyeObject(HelloWorldObject):
-    def __init__(self, bus_name):
-        HelloWorldObject.__init__(self, '/org/freedesktop/HelloWorldGoodbyeObject', bus_name)
+    def __init__(self, bus_name, object_path='/org/freedesktop/HelloWorldGoodbyeObject'):
+        HelloWorldObject.__init__(self, bus_name, object_path)
 
     @dbus.service.method('org.freedesktop.HelloWorldGoodbyeIFace')
     def hello(self):



More information about the dbus-commit mailing list