| Commit message (Collapse) | Author | Age |
| |
|
| |
|
|
|
|
| |
We used to reject noncharacters, but now we accept them.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Under Python 2, ObjectPath and Signature are subtypes of str (= bytes),
and the existing type-guessing worked.
The type-guessing code assumed that all unicode objects were just
strings, but that assumption became false in the Python 3 port:
ObjectPath and Signature are still subtypes of str, but str now means
unicode, not bytes.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=50740
|
| |
|
|
|
|
|
| |
Unicode strings aren't bytestrings, so there's no obvious meaning for
the byte value of a Unicode string of length 1.
|
|
|
|
| |
object paths in Python3, as per Simon's review comments.
|
|
|
|
|
|
|
| |
- 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.
|
| |
|
|
|
|
|
|
|
| |
2, since there are still some unconditional PyInt calls, which are not valid
in Python 3. However, it lays the framework for conditionalizing on Python 3
and using only PyLong in that case. Where it doesn't matter, PyLong is used
unconditionally.
|
|
|
|
|
|
| |
For some reason libdbus gives us NULL instead of a pointer to a
zero-length object (i.e. any random place in the message would do), which
Py_BuildValue doesn't interpret the way we'd want it to.
|
|
|
|
| |
removing all references to the LGPL as a result
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
cases.
This avoids us getting kicked off the bus when trying to put the wrong
number of things in a struct - this used to happen, but was masked by the fact
that the tests ran with service activation, so the service was just killed and
reactivated. Forthcoming changes to get_object make this automatic reactivation
not happen (messages will be directed to the unique name by default, so
stateful communication can work).
|
|
|
|
| |
attribute are serialized as that object path. Add that attribute to ProxyObject, dbus.Interface and dbus.service.Object.
|
|
|
|
| |
variants containing byte, not an array of variants containing string
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
|
| |
discussion with J5.
Switching Byte to be a single-character string is arguably more Pythonic, but
needlessly breaks API.
|
|
|
|
| |
or long
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Fix ByteArray unmarshalling.
|
|
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.
|