| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
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>
|
| |
|
|
|
|
|
| |
For now this means that skipped tests will be reported as passed.
This will be corrected in the next commit.
Signed-off-by: Simon McVittie <smcv@debian.org>
|
| | |
|
| |
|
|
|
| |
Now that Python 2.6 isn't a supported version in Debian, it doesn't
get a gi module, but we can still get some minimal test coverage.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 another except syntax problem.
|
| | |
|
| |
|
|
| |
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
|
| |
|
|
| |
BusName ctor
|
| |
|
|
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| |
|
|
| |
This is equivalent to dbus_connection_list_registered() in libdbus.
|
| |
|
|
|
|
|
|
|
|
| |
This prevents a deadlock when a signal match that's tracking name owner
changes is removed, causing a match on NameOwnerChanged to be removed too.
(Debian bug#426412)
Also move more of the tree manipulation inside the lock, to be nice to
anyone attempting a port to implementations without a GIL (mainly IronPython),
and add a regression test for the above bug.
|
| |
|
|
| |
Also add a simple unit test for it.
|
| |
|
|
| |
GetNameOwner too
|
| |
|
|
|
|
| |
* 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
|
| | |
|
| | |
|
| |
|
|
| |
to call awkwardly-named methods like __getattr__
|
| |
|
|
| |
Also make it possible to fail the async call tests in test-client, and add a test case for utf8_strings in async use.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
segfault on 0.80rc1)
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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)
|