summaryrefslogtreecommitdiff
path: root/dbus
Commit message (Collapse)AuthorAgeFilesLines
* Deprecate dbus.gobject_service and make it vaguely compatible with 1.0Simon McVittie2012-05-021-1/+15
| | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=48904
* Reinstate the old dbus.gobject_service, but only for Python 2Simon McVittie2012-05-021-0/+71
| | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=48904
* Rename gobject_service (PyGI version) to gi_serviceSimon McVittie2012-05-021-6/+6
| | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=48904
* Deprecate dbus.glib (use dbus.mainloop.glib or dbus.mainloop.qt4)Simon McVittie2012-01-241-0/+10
|
* More Python 3 porting, this time primarily to get test-client.py working.Barry Warsaw2011-12-162-33/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | Changes include: - DBusException.get_dbus_message(): In Python 3, the str of the exception will already be a unicode, so don't try to decode it unless it's a bytes object (a.k.a. 8-bit str in Python 2). - gobject_service.py: Switch to pygi and rewrite the metaclass instantiation code to be portable between Python 2 and Python 3. - run-test.sh: echo a few more useful environment variables - test-client.py: - Globally replace deprecated assertEquals with assertEqual - Globally replace deprecated assert_ with assertTrue - Use bytes objects for both 'ay' signatured methods on the server - AcceptUnicodeString will return a native unicode, i.e. a str in Python 3 and a unicode in Python 2. Python 3 has no `unicode` built-in. - Reformat some long lines for debugging. - test-service.py: - Open the log file in 'a' mode for easier tailing. - AcceptUnicodeString will return a native unicode, i.e. a str in Python 3 and a unicode in Python 2. Python 3 has no `unicode` built-in. - reformat some long lines for debugging. - Put module-scope code into a main() function and add a bunch of logger output for better debugging. `session_bus` must still be global though. Wrap main() in a bit try/except to log all top-level exceptions.
* Fix the match rule semantics so that a match rule of "arg0='/'" does not matchBarry Warsaw2011-12-151-9/+9
| | | | object paths in Python3, as per Simon's review comments.
* - Added back the missing PY3PORT.rst file, with updates.Barry Warsaw2011-12-151-2/+3
| | | | | | | - Disallow appending unicode objects with 'y' (bytes) signatures. This now requires either a bytes object or an integer. Update the tests to reflect - this change. - Fix broken __all__ in Python 3.
* This is the big one; it adds Python 3 support.Barry Warsaw2011-12-1510-66/+138
|
* Modernize multiline imports in preparation for Python 3 support.Barry Warsaw2011-12-138-74/+57
|
* Modernize `raise` syntax in preparation of Python 3 support.Barry Warsaw2011-12-131-4/+4
|
* Import threading instead of thread. The latter is gone in Python 3.Barry Warsaw2011-12-133-15/+4
|
* Remove dbus_bindings, deprecated for nearly 5 yearsSimon McVittie2011-12-133-59/+0
|
* Use Python 3 syntax to catch exceptionsBarry Warsaw2011-12-135-9/+9
| | | | Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* Merge branch 'fd-passing'Simon McVittie2011-05-241-2/+3
|\ | | | | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=30812 Tested-by: Elvis Pfützenreuter <epx@signove.com>
| * Added Unix Fd support to dbus-pythonElvis Pfützenreuter2011-05-181-2/+3
| |
* | _ProxyMethod: allow an explicit signature to be given to method callsSimon McVittie2011-05-181-13/+18
|/ | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=36206 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
* ProxyObject: clear _pending_introspect_queue after executionScott Tsai2011-05-171-0/+1
| | | | Signed-off-by: Simon McVittie <smcv@debian.org>
* Fixed typo in dbus/bus.py where list_activatable_names would call ↵Johan Sandelin2010-03-241-1/+1
| | | | | | org.freedesktop.DBus.ListNames instead of org.freedesktop.DBus.ListActivatableNames Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* fd.o #15013: expose dbus.lowlevel.MESSAGE_TYPE_SIGNAL and friendsSimon McVittie2010-02-181-2/+10
|
* Cleanup self._signal_recipients_by_object_path (fd.o #17551)Marco Pesenti Gritti2008-09-151-1/+9
| | | | | | | | | | | | | | | | In Connection, add_signal_receiver adds object paths to self._signal_recipients_by_object_path and they are not cleaned by remove_signal_receiver. As a result self._signal_recipients_by_object_path keeps growing indefinitely. This seem to work for me. I know very little about dbus-python though, so I could very well be doing it wrong. https://bugs.freedesktop.org/show_bug.cgi?id=17551 https://bugs.freedesktop.org/attachment.cgi?id=18857 Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* Omit the remote traceback from certain D-Bus errorsSimon McVittie2008-07-172-1/+37
| | | | | | | | | | | Specifically, DBusException and its subclasses no longer have the remote traceback by default (although subclasses can turn it back on again by setting include_traceback = True, and the various "programmer error" subclasses of DBusException do have this set). Hopefully this will stop people thinking it's a dbus-python or telepathy-python bug when a D-Bus API like Telepathy deliberately raises an error (and so dbus-python or telepathy-python is visible in the traceback).
* Update NEWS. Let's call the next release 0.83 since it's a feature releaseSimon McVittie2008-07-171-1/+1
|
* Alter dbus.server.Server API to have pseudo-signalsSimon McVittie2008-07-151-4/+44
| | | | | | By either appending to a list of callbacks, or subclassing and providing a method, you can be notified when connections are added or removed. Inspired by the DBusServer patch from Huang Peng.
* Add Connection.call_on_disconnectionSimon McVittie2008-07-141-0/+24
|
* dbus.server.Server: implement a stub version of _on_new_connectionSimon McVittie2008-07-141-0/+17
|
* Fix *another* thinko in dbus.serverSimon McVittie2008-07-141-1/+1
|
* Fix thinko in dbus.server: actually instantiate a _ServerSimon McVittie2008-07-141-0/+2
|
* Add some whitespace to make reStructuredText happySimon McVittie2008-07-141-0/+2
|
* Rename _dbus_bindings.Server to _dbus_bindings._ServerSimon McVittie2008-07-141-1/+1
|
* DBusPyServer: construct a user-specified subtype of ConnectionSimon McVittie2008-07-141-0/+20
|
* Initial support for DBusServer class (#14322).Mathias Hasselmann2008-07-141-0/+38
|
* Don't assume that libdbus only gives method call messages to object-path ↵Simon McVittie2008-01-221-1/+4
| | | | handlers (fd.o #14199)
* When user sets reply_handler but not error_handler raise ↵Simon McVittie2007-12-101-2/+2
| | | | MissingReplyHandlerException instead of MissingErrorHandlerException, and vice versa (fd.o #12304, patch from René Neumann)
* Use MIT/X11 license as per permission given on the dbus mailing list.Simon McVittie2007-10-098-110/+142
| | | | | | | | | | | This affects code with copyright statements from the following individuals: * Anders Carlsson * Colin Walters * David Zeuthen * Rob Taylor and the following companies: * Collabora Ltd. (represented by me) * Red Hat Inc. (represented by Havoc Pennington)
* Use non-recursive make for dbus/ to work around types.py clash with ↵Simon McVittie2007-10-091-28/+0
| | | | top-level types module (fd.o #12741)
* fd.o #12432: fix documentation for remove_from_connectionSimon McVittie2007-09-271-4/+0
|
* dbus.exceptions.DBusException: allow setting _dbus_error_name in subclassesSimon McVittie2007-09-271-1/+3
|
* Don't raise KeyError when closing private dbus.Bus. (fd.o #12096)Simon McVittie2007-09-271-7/+4
| | | | | | Also deprecate private dbus.Bus in favour of dbus.bus.BusConnection - the only things you gain from using dbus.Bus are the shared-instance behaviour and some strange more-than-one-way-to-do-it APIs.
* Relicense Collabora code under the MIT/X11 license proposed for dbus core, ↵Simon McVittie2007-09-276-65/+107
| | | | removing all references to the LGPL as a result
* dbus.service: Don't assume that exceptions passed to asynchronous callbacks ↵Simon McVittie2007-09-271-1/+10
| | | | | | are the same as the pending exception (fd.o #12403, https://dev.laptop.org/ticket/3370)
* Add rel_path_keyword to @method (fd.o #11623)Simon McVittie2007-08-012-2/+41
|
* Fix introspection on objects with more than one connection or more than one ↵Simon McVittie2007-08-011-6/+6
| | | | object path (bugs.fd.o #11794)
* Measure async call timeout in seconds as intended, not in ms (blocking calls ↵Simon McVittie2007-07-311-1/+1
| | | | already used seconds). Add regression tests
* Try to avoid importing things from _dbus_bindings when they could be ↵Simon McVittie2007-07-186-33/+29
| | | | imported from public API
* dbus.proxies: If making a call with ignore_reply=True, don't block for ↵Simon McVittie2007-06-291-1/+2
| | | | introspection
* dbus.service: use DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODESimon McVittie2007-06-211-1/+1
|
* Expose HANDLER_RESULT_HANDLED, HANDLER_RESULT_NOT_YET_HANDLED as public API ↵Simon McVittie2007-06-211-2/+5
| | | | in dbus.lowlevel
* Get stacklevel right on deprecation of not specifying bus in BusName.__init__Simon McVittie2007-06-211-1/+1
|
* dbus.service: Deprecate the omission of the `bus` argument in the BusName ↵Simon McVittie2007-06-201-4/+13
| | | | | | constructor. Explicit is better than implicit.
* Improve API documentation markup, particularly adding :Since: annotationsSimon McVittie2007-06-195-30/+88
|