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