| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Python 2 reached EOL on 2020-01-01, and the latest version of
AX_PYTHON_DEVEL breaks the build with Python 2. This seems as good a
time as any to drop compatibility.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
|
|
|
| |
Back in the days of PyGTK, there was only the gobject module, containing
bindings for both GLib and GObject. This is no longer the case.
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
|
|
| |
See https://gitlab.freedesktop.org/dbus/dbus-python/issues/26
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
| |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
| |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
|
|
|
| |
Signed-off-by: Simon McVittie <smcv@collabora.com>
|
| |
|
|
|
|
| |
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=48904
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
|
|
| |
Havoc's permission
(Message-ID: <815098350709271800k2505485dlef9414609d392b48@mail.gmail.com>)
|
| |
|
| |
|
|
|
|
| |
object path (bugs.fd.o #11794)
|
|
|
|
| |
already used seconds). Add regression tests
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
This is equivalent to dbus_connection_list_registered() in libdbus.
|
|
|
|
| |
Also add a simple unit test for it.
|
| |
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In the process:
HACKING.txt: update
include/dbus-python.h: add some typedefs to make it saner
bus.c, conn.c, conn-methods.c: further alter docstrings to keep epydoc happy
exceptions.c: create exceptions in a more longwinded way for Python 2.5 compatibility
message-get-args.c, bus/__init__.py: tweak docstrings
dbus/introspect_parser.py: make docstring valid reStructuredText
run-test.sh: simplify, since configure now does some of the work
test/*.py: use paths from run-test.sh, cope with out-of-tree builds
test-standalone.py: carry out additional sanity checks
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
| |
|
|
|
|
| |
copyright notices accordingly
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
* create a check command for distutils (python setup.py check)
|