dbus.bus: when a unique name goes away, disconnect all signal handlers.
[dbus-python-phuang.git] / NEWS
blobd7bfd211e0698bfc66b9411e7872211cf88b86f3
1 D-Bus Python Bindings 0.81.1 (4 June 2007)
2 ==========================================
4 Features:
6 * When an Error message on the bus is represented as a DBusException, the
7   error name is copied into the exception and can be retrieved by
8   get_dbus_name(). Exception handlers should use this instead of looking at
9   the stringified form of the exception, unless backwards compatibility
10   is needed.
11 * DBusException objects now get all arguments from the Error message, not
12   just the first (although there will usually only be one). Use the 'args'
13   attribute if you need to retrieve them.
14 * The Connection, BusConnection and Bus classes have a method
15   list_exported_child_objects(path: str) -> list of str, which wraps
16   dbus_connection_list_registered()
17 * You can remove objects from D-Bus before they become unreferenced, by
18   using dbus.service.Object.remove_from_connection()
19   (https://bugs.freedesktop.org/show_bug.cgi?id=10457)
21 Bug fixes:
23 * Don't deadlock when removing a signal match that tracks name-owner changes.
24   (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=426412)
25 * Include child nodes in introspection using list_exported_child_objects()
27 D-Bus Python Bindings 0.81.0 (9 May 2007)
28 =========================================
30 The 'series of tubes' release
31 -----------------------------
33 This is a feature release with support for non-bus-daemon connections
34 and improved GObject integration.
36 Features:
38 * Bus has a superclass dbus.bus.BusConnection (a connection to a bus daemon,
39   but without the shared-connection semantics or any deprecated API)
40   for the benefit of those wanting to subclass bus daemon connections
42 * BusConnection has a superclass dbus.connection.Connection (a
43   connection without a bus daemon) for use in peer-to-peer situations,
44   or distributed pseudo-bus situations without a bus daemon such as
45   Telepathy's Tubes API
47 * dbus.gobject_service.ExportedGObject is like dbus.service.Object, but
48   is also a subclass of GObject (with the necessary metaclass magic to
49   make this work). Until someone has verified that the GObject side of
50   things works as expected too, I consider this API to be potentially
51   subject to change!
53 * Connection and BusConnection have gained a number of useful methods,
54   including watch_name_owner (track name owner changes asynchronously,
55   avoiding race conditions), call_blocking and call_async (blocking and
56   asynchronous method calls without going via a proxy - note that these
57   are semi-low-level interfaces which don't do introspection), and
58   list_names, list_activatable_names and get_name_owner which are
59   simple wrappers for the corresponding org.freedesktop.DBus methods
61 * dbus.Interface (now also available at dbus.proxies.Interface)
62   and dbus.proxies.ProxyObject now have some reasonably obvious properties.
64 Deprecations:
66 * All keyword arguments called named_service are deprecated in favour of an
67   argument called bus_name (to be compatible with both older and newer
68   dbus-python, you should pass these positional arguments).
70 * The bus keyword argument to dbus.proxies.ProxyObject is deprecated in
71   favour of an argument called conn, because proxies will work on non-bus
72   connections now (again, for maximum compatibility you should use a
73   positional argument for this).
75 * No warning is raised for this, but I consider calling any remote method
76   on a ProxyObject or Interface whose name is either alllowercase or
77   lower_case_with_underscores to be deprecated, and reserve the right
78   to add properties or methods of this form in future releases - use
79   ProxyObject.get_dbus_method if you must call a remote method named in
80   this way. Methods named following TheUsualDBusConvention or
81   theJavaConvention are safe.
83 Bugfixes:
85 * Exceptions in signal handlers print a stack trace to stderr (this can
86   be redirected elsewhere with Python's logging framework). Partially
87   addresses fd.o #9980.
89 * The reserved local interface and object path are properly checked for.
91 * When you return a tuple that is not a Struct from a method with no
92   out_signature, it's interpreted as multiple return values, not a
93   single Struct (closes fd.o #10174).
95 * If send_with_reply() returns TRUE but with pending call NULL, dbus-python
96   no longer crashes. This can happen when unexpectedly disconnected.
98 * Arguments are not examined for functions declared METH_NOARGS (this is
99   unnecessary and can cause a crash).
101 Other notable changes:
103 * dbus-python uses the standard Python logging framework throughout.
104   The first time a WARNING or ERROR is generated, it will configure the
105   logging framework to output to stderr, unless you have already
106   configured logging in your application.
108 * The tutorial now advocates the use of add_signal_receiver if all you
109   want to do is listen for signals: this avoids undesired activation,
110   e.g. of Listen or Rhythmbox (!). Addresses fd.o #10743, fd.o #10568.
112 D-Bus Python Bindings 0.80.2 (13 February 2007)
113 ===============================================
114 - Fix numerous memory and reference leaks
115 - Only use -Werror if the user specifically asks for it
116 - Audit tp_dealloc callbacks to make sure they correctly preserve the
117   exception state
118 - Relicense files solely owned by Collabora Ltd. more permissively (LGPL/AFL
119   rather than GPL/AFL) - this includes the tutorial and all the C code
121 D-Bus Python Bindings 0.80.1 (24 January 2007)
122 ==============================================
123 - The "oops" release
124 - Install dbus/_version.py, so dbus.__version__ exists again
126 D-Bus Python Bindings 0.80.0 (24 January 2007)
127 ==============================================
128 - The "everything changes" release
129 - Rewrite dbus_bindings (Pyrex) as _dbus_bindings (C) - API changes!
130 - Define what's public API
131 - Move low-level but still public API to dbus.lowlevel
132 - Remove Variant class, add variant_level property on all D-Bus types
133 - Make signal matching keep working as expected when name ownership changes
134 - Use unambiguous D-Bus types when transferring from D-Bus to Python
135 - Follow well-defined rules when transferring from Python to D-Bus
136 - Add utf8_strings and byte_arrays options in various places, so a user
137   can tweak the calling conventions to be more efficient
138 - Raise RuntimeError if user tries to use a connection with no main loop
139   to do something that won't work without one
140 - Make asynchronous method calls actually asynchronous when made before
141   introspection results come back
142 - Redo main loop machinery so we can add pure-Python main loops later without
143   API breakage
144 - Allow construction of a dbus.service.Object if you don't have a BusName
145   (or even a Bus)
146 - Port introspection XML parser from libxml2 (external package) to expat
147   (included with Python)
148 - Port build system from distutils to autoconf/automake/libtool
149 - Install a header file for third-party main loop integration
150 - Make compatible with Python 2.5, including on 64-bit platforms
151 - Add docstrings throughout
152 - Add more tests and examples
153 - Add interoperability tests (which interoperate with Java)
154 - Add copyright notices!
156 D-Bus Python Bindings 0.71 (24 July 2006)
157 ==============================================================
158 - Binary modules are now installed in the correct directory
159 - Distutils exports the dbus and dbus-glib cflags
161 D-Bus Python Bindings 0.70 (17 July 2006)
162 ==============================================================
163 - First release of bindings split
164 - Move to a distutils build enviornment
165 - It is possible to now specify sender_keyword="foo", path_keyword="bar" when 
166   adding a signal listener