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