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