Unset release flag, and start NEWS for 0.82.5
[dbus-python-phuang.git] / NEWS
blob3f97eee715a7e8eb898fc4fa32841b9a521a907c
1 D-Bus Python Bindings 0.82.5 (unreleased)
2 =========================================
4 Features:
6 Fixes:
8 D-Bus Python Bindings 0.82.4 (2007-12-10)
9 =========================================
11 Fixes:
13 * supplying reply_handler but not error_handler raises
14   MissingReplyHandlerException instead of MissingErrorHandlerException,
15   and vice versa (fd.o #12304, patch from RenĂ© Neumann)
16 * Using non-recursive make for dbus/ directory should fix builds in some
17   environments (fd.o #12741)
19 Licensing:
21 * Everything is now under the same MIT/X11 license used for Collabora code in
22   the previous release
23 * Added copyright headers to some files that were still missing them
25 D-Bus Python Bindings 0.82.3 (2007-09-27)
26 =========================================
28 Fixes:
30 * Out-of-tree builds with an absolute $(srcdir) can now build docs and run tests
31 * Closing private dbus.Bus no longer raises KeyError (fd.o #12096)
32 * async_err_cb(MyException()) now works (fd.o #12403)
33 * dbus.service.Object.remove_from_connection no longer claims that multiple
34   exports aren't possible (fd.o #12432)
35 * Setting _dbus_error_name as a class attribute of DBusException subclasses
36   works again
38 Deprecations:
40 * dbus.Bus(private=True) (use dbus.bus.BusConnection in new code, dbus.Bus
41   basically just adds the shared-connection behaviour)
43 Licensing:
45 * Code for which Collabora is the only copyright holder is now under the
46   same permissive MIT/X11 license under which dbus core is being relicensed
47   (this allows everything the old license would have allowed, and more)
49 D-Bus Python Bindings 0.82.2 (2007-08-01)
50 =========================================
52 Incompatibility with 0.82.1:
54 * If you pass the timeout argument to call_async or an asynchronous proxy
55   method call and expect it to be in milliseconds, you should change the
56   argument to be in seconds, and require dbus-python >= 0.82.2.
58   This feature didn't work at all in versions prior to 0.82.1, so any code
59   that works with 0.82.0 or earlier is unaffected.
61 Features:
63 * @dbus.service.method supports a rel_path_keyword argument for the benefit
64   of fallback objects, which provides the method implementation with the path
65   of the object within the exported subtree. For instance, if you have a
66   fallback object exported at /Fallback, and you call a method that has
67   rel_path_keyword='rel_path' on /Fallback and on /Fallback/Some/Where, the
68   method implementation will be called with rel_path='/' and with
69   rel_path='/Some/Where' respectively. (fd.o #11623)
71 * If you have epydoc version 3 (currently in beta), API documention is now
72   generated by default.
74 Fixes:
76 * As mentioned under "Incompatibilities" above, Connection.call_async()
77   measures timeouts in seconds, as was always intended.
78   This means that calls through a proxy object with a reply_handler and
79   error_handler will measure the timeout in seconds too.
81 * Introspect() now works on objects exported in more than one location.
82   (fd.o #11794)
84 * Building against Python 2.4 on non-Debian-derived distributions, or a
85   non-default Python version on Gentoo, should work again (revenge
86   of fd.o #11282, thanks Eyal Ben David).
88 D-Bus Python Bindings 0.82.1 (2007-07-11)
89 =========================================
91 The "double precision" release.
93 Fixes:
95 * Parse the timeout correctly in send_message_with_reply() and
96   send_message_with_reply_and_block(), fixing the use of non-default timeouts
97   (bugs.fd.o #11489)
98 * The tutorial no longer uses interactive-Python syntax, as it confused users.
99   (bugs.fd.o #11209)
100 * When making a call via a proxy object with ignore_reply=True, also get the
101   necessary introspection data asynchronously. This can avoid deadlocks in
102   some cases, such as calling methods in the same process (though this is not
103   recommended, for efficiency and sanity reasons).
104 * dbus.lowlevel exposes enough constants to write correct filter functions.
105 * We don't use dbus_watch_get_fd() (deprecated in libdbus) unless our libdbus
106   is too old to have the modern replacement, dbus_watch_get_unix_fd().
108 Deprecations:
110 * Omitting the bus argument in the BusName constructor is deprecated.
111   The fact that it uses the globally shared connection to the session bus by
112   default is uncomfortably subtle.
114 D-Bus Python Bindings 0.82.0 (2007-06-19)
115 =========================================
117 Features:
119 * dbus.service.Object can start off with no Connection or object path, and
120   become exported later. If suitable class attributes are set, objects can
121   even be exported on multiple connections, or with multiple object-paths,
122   or both.
124 * dbus.service.FallbackObject implements a whole subtree of object-path space
125   (fd.o #9295).
127 * ``@method`` accepts a parameter ``connection_keyword`` so methods can find
128   out which connection to use for any follow-up actions.
130 * ``@signal`` has a new parameter ``rel_path_keyword`` which gets the path at
131   which to emit the signal, relative to the path of the FallbackObject.
132   ``path_keyword`` is now deprecated, and will raise an exception if used
133   on an object with ``SUPPORTS_MULTIPLE_OBJECT_PATHS``, including any
134   ``FallbackObject``.
136 Fixes:
138 * In watch_name_owner, only the desired name is watched!
140 * When cleaning up signal matches, errors are ignored. This avoids using up
141   scarce pending-call allowance on dbus-daemon < 1.1, and emitting error
142   messages if we get disconnected.
144 * Signal handlers which are bound to a unique name are automatically
145   disconnected when the unique name goes away, reducing the likelihood that
146   applications will leak signal matches.
148 * Some corrections were made to the tutorial (@service and @method take a
149   parameter dbus_interface, not just interface; fd.o #11209).
151 * ${PYTHON}-config is used to get the Python include path (patch from
152   Sebastien Bacher/Ubuntu, fd.o #11282).
154 D-Bus Python Bindings 0.81.1 (4 June 2007)
155 ==========================================
157 Features:
159 * When an Error message on the bus is represented as a DBusException, the
160   error name is copied into the exception and can be retrieved by
161   get_dbus_name(). Exception handlers should use this instead of looking at
162   the stringified form of the exception, unless backwards compatibility
163   is needed.
164 * DBusException objects now get all arguments from the Error message, not
165   just the first (although there will usually only be one). Use the 'args'
166   attribute if you need to retrieve them.
167 * The Connection, BusConnection and Bus classes have a method
168   list_exported_child_objects(path: str) -> list of str, which wraps
169   dbus_connection_list_registered()
170 * You can remove objects from D-Bus before they become unreferenced, by
171   using dbus.service.Object.remove_from_connection()
172   (https://bugs.freedesktop.org/show_bug.cgi?id=10457)
174 Bug fixes:
176 * Don't deadlock when removing a signal match that tracks name-owner changes.
177   (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=426412)
178 * Include child nodes in introspection using list_exported_child_objects()
180 D-Bus Python Bindings 0.81.0 (9 May 2007)
181 =========================================
183 The 'series of tubes' release
184 -----------------------------
186 This is a feature release with support for non-bus-daemon connections
187 and improved GObject integration.
189 Features:
191 * Bus has a superclass dbus.bus.BusConnection (a connection to a bus daemon,
192   but without the shared-connection semantics or any deprecated API)
193   for the benefit of those wanting to subclass bus daemon connections
195 * BusConnection has a superclass dbus.connection.Connection (a
196   connection without a bus daemon) for use in peer-to-peer situations,
197   or distributed pseudo-bus situations without a bus daemon such as
198   Telepathy's Tubes API
200 * dbus.gobject_service.ExportedGObject is like dbus.service.Object, but
201   is also a subclass of GObject (with the necessary metaclass magic to
202   make this work). Until someone has verified that the GObject side of
203   things works as expected too, I consider this API to be potentially
204   subject to change!
206 * Connection and BusConnection have gained a number of useful methods,
207   including watch_name_owner (track name owner changes asynchronously,
208   avoiding race conditions), call_blocking and call_async (blocking and
209   asynchronous method calls without going via a proxy - note that these
210   are semi-low-level interfaces which don't do introspection), and
211   list_names, list_activatable_names and get_name_owner which are
212   simple wrappers for the corresponding org.freedesktop.DBus methods
214 * dbus.Interface (now also available at dbus.proxies.Interface)
215   and dbus.proxies.ProxyObject now have some reasonably obvious properties.
217 Deprecations:
219 * All keyword arguments called named_service are deprecated in favour of an
220   argument called bus_name (to be compatible with both older and newer
221   dbus-python, you should pass these positional arguments).
223 * The bus keyword argument to dbus.proxies.ProxyObject is deprecated in
224   favour of an argument called conn, because proxies will work on non-bus
225   connections now (again, for maximum compatibility you should use a
226   positional argument for this).
228 * No warning is raised for this, but I consider calling any remote method
229   on a ProxyObject or Interface whose name is either alllowercase or
230   lower_case_with_underscores to be deprecated, and reserve the right
231   to add properties or methods of this form in future releases - use
232   ProxyObject.get_dbus_method if you must call a remote method named in
233   this way. Methods named following TheUsualDBusConvention or
234   theJavaConvention are safe.
236 Bugfixes:
238 * Exceptions in signal handlers print a stack trace to stderr (this can
239   be redirected elsewhere with Python's logging framework). Partially
240   addresses fd.o #9980.
242 * The reserved local interface and object path are properly checked for.
244 * When you return a tuple that is not a Struct from a method with no
245   out_signature, it's interpreted as multiple return values, not a
246   single Struct (closes fd.o #10174).
248 * If send_with_reply() returns TRUE but with pending call NULL, dbus-python
249   no longer crashes. This can happen when unexpectedly disconnected.
251 * Arguments are not examined for functions declared METH_NOARGS (this is
252   unnecessary and can cause a crash).
254 Other notable changes:
256 * dbus-python uses the standard Python logging framework throughout.
257   The first time a WARNING or ERROR is generated, it will configure the
258   logging framework to output to stderr, unless you have already
259   configured logging in your application.
261 * The tutorial now advocates the use of add_signal_receiver if all you
262   want to do is listen for signals: this avoids undesired activation,
263   e.g. of Listen or Rhythmbox (!). Addresses fd.o #10743, fd.o #10568.
265 D-Bus Python Bindings 0.80.2 (13 February 2007)
266 ===============================================
267 - Fix numerous memory and reference leaks
268 - Only use -Werror if the user specifically asks for it
269 - Audit tp_dealloc callbacks to make sure they correctly preserve the
270   exception state
271 - Relicense files solely owned by Collabora Ltd. more permissively (LGPL/AFL
272   rather than GPL/AFL) - this includes the tutorial and all the C code
274 D-Bus Python Bindings 0.80.1 (24 January 2007)
275 ==============================================
276 - The "oops" release
277 - Install dbus/_version.py, so dbus.__version__ exists again
279 D-Bus Python Bindings 0.80.0 (24 January 2007)
280 ==============================================
281 - The "everything changes" release
282 - Rewrite dbus_bindings (Pyrex) as _dbus_bindings (C) - API changes!
283 - Define what's public API
284 - Move low-level but still public API to dbus.lowlevel
285 - Remove Variant class, add variant_level property on all D-Bus types
286 - Make signal matching keep working as expected when name ownership changes
287 - Use unambiguous D-Bus types when transferring from D-Bus to Python
288 - Follow well-defined rules when transferring from Python to D-Bus
289 - Add utf8_strings and byte_arrays options in various places, so a user
290   can tweak the calling conventions to be more efficient
291 - Raise RuntimeError if user tries to use a connection with no main loop
292   to do something that won't work without one
293 - Make asynchronous method calls actually asynchronous when made before
294   introspection results come back
295 - Redo main loop machinery so we can add pure-Python main loops later without
296   API breakage
297 - Allow construction of a dbus.service.Object if you don't have a BusName
298   (or even a Bus)
299 - Port introspection XML parser from libxml2 (external package) to expat
300   (included with Python)
301 - Port build system from distutils to autoconf/automake/libtool
302 - Install a header file for third-party main loop integration
303 - Make compatible with Python 2.5, including on 64-bit platforms
304 - Add docstrings throughout
305 - Add more tests and examples
306 - Add interoperability tests (which interoperate with Java)
307 - Add copyright notices!
309 D-Bus Python Bindings 0.71 (24 July 2006)
310 ==============================================================
311 - Binary modules are now installed in the correct directory
312 - Distutils exports the dbus and dbus-glib cflags
314 D-Bus Python Bindings 0.70 (17 July 2006)
315 ==============================================================
316 - First release of bindings split
317 - Move to a distutils build enviornment
318 - It is possible to now specify sender_keyword="foo", path_keyword="bar" when 
319   adding a signal listener