summaryrefslogtreecommitdiff
path: root/dbus/service.py
AgeCommit message (Collapse)AuthorFilesLines
2019-07-15Add clearer licensing information in SPDX formatSimon McVittie1-0/+2
Signed-off-by: Simon McVittie <smcv@collabora.com>
2018-05-02Convert documentation from epydoc to SphinxSimon McVittie1-5/+5
Signed-off-by: Simon McVittie <smcv@collabora.com>
2015-12-04Include FallbackObject in "from dbus.service import *"Ben Longbons1-1/+1
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=85720 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk> [smcv: separate out some changes into separate commits]
2011-12-15This is the big one; it adds Python 3 support.Barry Warsaw1-8/+17
2011-12-13Modernize multiline imports in preparation for Python 3 support.Barry Warsaw1-5/+5
2011-12-13Import threading instead of thread. The latter is gone in Python 3.Barry Warsaw1-5/+2
2011-12-13Use Python 3 syntax to catch exceptionsBarry Warsaw1-3/+3
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
2008-07-17Omit the remote traceback from certain D-Bus errorsSimon McVittie1-1/+4
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).
2008-01-22Don't assume that libdbus only gives method call messages to object-path ↵Simon McVittie1-1/+4
handlers (fd.o #14199)
2007-10-09Use MIT/X11 license as per permission given on the dbus mailing list.Simon McVittie1-15/+19
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)
2007-09-27fd.o #12432: fix documentation for remove_from_connectionSimon McVittie1-4/+0
2007-09-27dbus.service: Don't assume that exceptions passed to asynchronous callbacks ↵Simon McVittie1-1/+10
are the same as the pending exception (fd.o #12403, https://dev.laptop.org/ticket/3370)
2007-08-01Add rel_path_keyword to @method (fd.o #11623)Simon McVittie1-1/+24
2007-08-01Fix introspection on objects with more than one connection or more than one ↵Simon McVittie1-6/+6
object path (bugs.fd.o #11794)
2007-07-18Try to avoid importing things from _dbus_bindings when they could be ↵Simon McVittie1-14/+14
imported from public API
2007-06-21dbus.service: use DBUS_INTROSPECT_1_0_XML_DOCTYPE_DECL_NODESimon McVittie1-1/+1
2007-06-21Get stacklevel right on deprecation of not specifying bus in BusName.__init__Simon McVittie1-1/+1
2007-06-20dbus.service: Deprecate the omission of the `bus` argument in the BusName ↵Simon McVittie1-4/+13
constructor. Explicit is better than implicit.
2007-06-19Improve API documentation markup, particularly adding :Since: annotationsSimon McVittie1-7/+23
2007-06-18Implement fallback objects.Simon McVittie1-4/+48
In the process, simplify the signal decorator a bit - don't allow the signal to be emitted from a subset of interfaces (removing connection_keyword), deprecate path_keyword, disallow path_keyword on objects that support multiple object paths, and add rel_path_keyword. This is an API removal since previous patches, but is compatible with the last release.
2007-06-11dbus.service: Allow objects to start off unexported, and become exported later.Simon McVittie1-32/+177
Also allow them to be exported on more than one object path or even connection. dbus.decorators: Allow connection_keyword on signals and methods, so we can tell which connection to use for any follow-up actions.
2007-06-04dbus.service: change unexport() to remove_from_connection() at J5's requestSimon McVittie1-6/+8
2007-05-30dbus.service: Make it possible to unexport objects (fd.o#10457)Simon McVittie1-1/+32
2007-05-29dbus.service: include child nodes in introspectionSimon McVittie1-0/+4
2007-05-16Implement DBusException in pure Python; add get_dbus_name() method and name= ↵Simon McVittie1-4/+7
keyword argument
2007-05-07dbus/service.py: Before emitting an error, configure logging to write to ↵Simon McVittie1-0/+1
stderr, unless already configured
2007-05-04dbus/service.py: Don't use deprecated get_connection() in Object constructor.Simon McVittie1-3/+1
The Connection and BusConnection base classes don't have it, and we can now export Objects on a plain Connection.
2007-04-30dbus/service.py: Use public API for dbus.SessionBus, since we cause an ↵Simon McVittie1-2/+2
import anyway
2007-04-25Preparation for fallback-object support:Simon McVittie1-1/+7
* Let exported methods receive the path, destination and raw message via kwargs, as well as the sender * Let exported signals be emitted from a variable object-path
2007-04-24Fix fd.o #10174: make it possible to return multiple values with no signature.Simon McVittie1-1/+7
More specifically: when a service method with no signature synchronously returns a tuple that is not a Struct, interpret it as a multi-valued return, rather than as a structure. This is a common Python idiom, and returning a struct makes little sense anyway when D-Bus lets you return multiple values. Returned lists are still interpreted as arrays - returning an array is entirely sensible, and indeed likely to be common. Async service methods are unaffected (there is no ambiguity), and it's still possible to return a structure by returning a dbus.Struct with appropriate contents. https://bugs.freedesktop.org/show_bug.cgi?id=10174
2007-04-24Remove trailing whitespace in Python sourceSimon McVittie1-1/+1
2007-04-24dbus/service.py: untabifySimon McVittie1-1/+1
2007-03-02* dbus.service.Object: don't let the user try to export objects on the localSimon McVittie1-0/+8
path reserved by libdbus/dbus-daemon, or on an invalid path. * BusName: don't even try to claim an invalid bus name either.
2007-03-02Remove FIXME comment - I think the current behaviour is correct.Simon McVittie1-2/+0
2007-01-25dbus, _dbus_bindings, _dbus_glib_bindings: remove accidentally duplicated ↵Simon McVittie1-2/+0
lines in license statement
2007-01-17dbus/service.py: cope with exceptions with no __module__Simon McVittie1-2/+2
(thanks Phil Thompson, <phil riverbankcomputing co uk>)
2007-01-10Add special case to serialization: objects with a __dbus_object_path__ ↵Simon McVittie1-0/+3
attribute are serialized as that object path. Add that attribute to ProxyObject, dbus.Interface and dbus.service.Object.
2006-12-05dbus/__init__.py, dbus/_dbus.py, dbus/service.py: Improve docstrings, ↵Simon McVittie1-10/+39
imports, __all__
2006-11-30dbus._dbus, dbus.decorators, dbus.service: Update names of newly public ↵Simon McVittie1-2/+2
low-level methods
2006-11-30dbus/service.py: Allow a Connection as parameter to Object constructor, to ↵Simon McVittie1-13/+31
avoid having to have a well-known bus name
2006-11-14- dbus.service.Object, dbus.decorators.method: Allow utf8_strings andSimon McVittie1-7/+7
byte_arrays parameters kwargs when exporting a method. These change the calling convention in the same way as Message.get_args_list(). - dbus.proxies.ProxyMethod: allow the same kwargs to be passed to any proxy method; this time, they change the representation of the remote method's return value(s). - Test that the above work - Improve correctness of setting the NAME_FLAG_* flags - Whitespace tweaks (remove hard tabs)
2006-10-05Seth was a Red Hat employee when contributing to dbus-python: alter ↵Simon McVittie1-2/+1
copyright notices accordingly
2006-09-27Add copyright, AFL2.1, GPL2 notices, which might even be correct...Simon McVittie1-0/+24
The lists of copyright holders are derived from the D-Bus CVS changelog: I've erred on the side of adding people to the list rather than not. For now I've assumed that J5's contributions are owned by Red Hat, Collabora people's contributions (Rob McQueen, Rob Taylor, Ole Andre Ravnaas, myself) are owned by Collabora and everything else is owned by the author.
2006-09-26Throughout dbus-python: Use the C implementation.Simon McVittie1-40/+42
Add document API_CHANGES.txt listing visible API changes. Add more test cases, for low-level Python <-> D-Bus type mappings. Amend existing test cases to cope with the API changes.
2006-09-08dbus/service.py, dbus/_dbus_bindings-types.pxi: Move VariantSignatureSimon McVittie1-2/+16
As it's only used in dbus.service, there is no reason for VariantSignature to be written in Pyrex.
2006-08-31Rename dbus_bindings (sometimes a.k.a. dbus.dbus_bindings) to _dbus_bindings.Simon McVittie1-19/+19
Ditto for dbus_glib_bindings. Remove dbus.pth - should no longer be needed after this change.
2006-08-30Add some docstrings (reStructuredText with epydoc annotations)Simon McVittie1-3/+61
2006-07-27* dbus/BusName.py (BusName::__new__): Modified patch from Alex JonesJohn (J5) Palmieri1-2/+7
<alex at weej dot com> - Add flags when requesting a name
2006-07-12Move python/ to dbus/, the name of the module.Robert McQueen1-0/+370