summaryrefslogtreecommitdiff
path: root/dbus/_dbus.py
Commit message (Collapse)AuthorAgeFilesLines
* Add some whitespace to make reStructuredText happySimon McVittie2008-07-141-0/+2
|
* Use MIT/X11 license as per permission given on the dbus mailing list.Simon McVittie2007-10-091-13/+17
| | | | | | | | | | | 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)
* 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.
* Try to avoid importing things from _dbus_bindings when they could be ↵Simon McVittie2007-07-181-4/+2
| | | | imported from public API
* Mark Bus.get_connection() as deprecated; improve Bus.__repr__Simon McVittie2007-06-191-8/+10
|
* Implement DBusException in pure Python; add get_dbus_name() method and name= ↵Simon McVittie2007-05-161-1/+2
| | | | keyword argument
* Simplify dbus_bindings backwards compatibility glueSimon McVittie2007-05-011-22/+4
|
* Move signal matching machinery into superclassesSimon McVittie2007-04-301-410/+2
|
* Move get_object, constants into Connection and BusConnection. Add docstringsSimon McVittie2007-04-301-57/+7
|
* Convert _BusDaemonMixin and _MethodCallMixin into base classes BusConnection ↵Simon McVittie2007-04-301-5/+3
| | | | | | | | and Connection. Also add method activate_name_owner() for proxies to use (so they don't need to be aware of whether the connection is a bus daemon or not), and stop using deprecated get_connection method.
* dbus/_dbus.py: in SignalMatch, use get_name_owner()Simon McVittie2007-04-301-1/+1
|
* dbus/_dbus.py: import constants from _dbus_bindings; use "from...import"Simon McVittie2007-04-301-26/+32
|
* Move the client method-call machinery from dbus.proxies to ↵Simon McVittie2007-04-301-3/+4
| | | | | | | | dbus.connection._MethodCallMixin. This makes proxy methods much simpler, and allows the _BusDaemonMixin to bypass the proxies module completely (since the signatures are already known, so we don't need to introspect anything).
* Remove BusImplementation, removing its remaining functionality to Connection.Simon McVittie2007-04-301-5/+3
| | | | | | | | | * Move get_unique_name to Connection (it can be useful for connections which aren't to a real bus daemon but partially emulate one, like Telepathy's Tubes) * Add set_unique_name to Connection (same reason) * Convert BusImplementation.__new__ into Connection._new_for_bus * Have dbus.Bus subclass _dbus_bindings.Connection directly
* Implement o.fd.DBus method wrappers in Python instead of C.Simon McVittie2007-04-301-1/+3
| | | | | This reduces the need to have _dbus_bindings.BusImplementation and makes peer-to-peer connections easier to implement.
* Move Interface from dbus._dbus to dbus.proxies (it belongs there really).Simon McVittie2007-04-301-133/+1
| | | | Make it a new-style object and document it more clearly.
* Remove redundant constantsSimon McVittie2007-04-271-3/+0
|
* dbus/_dbus.py: Match NameOwnerChanged correctlySimon McVittie2007-04-271-1/+2
|
* Remove trailing whitespace in Python sourceSimon McVittie2007-04-241-4/+4
|
* SignalMatch: check that interface, member and sender are either valid, or NoneSimon McVittie2007-03-021-0/+9
|
* SignalMatch: remove assorted commented-out debug messagesSimon McVittie2007-03-021-21/+3
|
* dbus/_dbus.py: When an exception is raised by a signal handler, print it to ↵Simon McVittie2007-02-191-22/+32
| | | | stderr
* dbus, _dbus_bindings, _dbus_glib_bindings: remove accidentally duplicated ↵Simon McVittie2007-01-251-2/+0
| | | | lines in license statement
* Add Makefile target maintainer-update-website to update d.fd.o/doc/dbus-pythonSimon McVittie2007-01-241-18/+21
| | | | | | | (to use this target, configure your fd.o username, if not the same as your local username, in ~/.ssh/config). Move API_CHANGES.txt, HACKING.txt to doc/ directory. Tweak documentation generation so deprecated stuff isn't documented.
* Remove get_object_by_unique_name again, and replace with a ↵Simon McVittie2007-01-161-50/+21
| | | | | | | | | | | | | better-thought-out version of get_object - Remove get_object_by_unique_name (introduced in 0.80rc1) - J5's right, the name is misleading - Make get_object *not* follow name changes by default (a return to pre-0.80 behaviour, and the same as 0.80rc1's get_object_by_unique_name()) - Add keyword argument follow_name_owner_changes (default is False): if True, it will follow name owner changes (like 0.80rc1's get_object() always did) - Implement with modifications to ProxyObject so it resolves the unique name on construction, if required (activating it if necessary)
* Add special case to serialization: objects with a __dbus_object_path__ ↵Simon McVittie2007-01-101-0/+5
| | | | attribute are serialized as that object path. Add that attribute to ProxyObject, dbus.Interface and dbus.service.Object.
* dbus.Interface, dbus.ProxyObject: add get_dbus_method(), which can be used ↵Simon McVittie2007-01-091-0/+26
| | | | to call awkwardly-named methods like __getattr__
* Don't require a main loop unless async calls, signal connections or exported ↵Simon McVittie2007-01-091-2/+8
| | | | objects are actually made. (Increases backwards compatibility with Pyrex-dbus-python)
* Accept keyword argument introspect=False to Bus.get_object(),Simon McVittie2007-01-091-4/+10
| | | | | | | Bus.get_object_by_unique_name() to suppress introspection - off by default, but necessary to work around broken service implementations which fail to reply to introspection. Thanks to Ulisses Furquim <ulissesf at gmail.com> for the patch.
* dbus/_dbus.py: Strongly reference shared connections, so they stay alive and ↵Simon McVittie2006-12-131-1/+7
| | | | signal handlers etc. stick. On close, remove them from the table of shared connections first
* dbus/_dbus.py: Use absolute import for proxiesSimon McVittie2006-12-131-1/+1
|
* dbus/_dbus.py, dbus/proxies.py: Add keyword arguments interface_keyword, ↵Simon McVittie2006-12-071-2/+47
| | | | member_keyword, destination_keyword (completing the set of useful message fields for signal handlers); also add message_keyword (for advanced use)
* dbus/__init__.py, dbus/_dbus.py, dbus/service.py: Improve docstrings, ↵Simon McVittie2006-12-051-71/+25
| | | | imports, __all__
* dbus/_dbus.py: Re-work signal matching so it does the right thing when name ↵Simon McVittie2006-12-041-88/+322
| | | | ownership changes
* dbus._dbus, dbus.decorators, dbus.service: Update names of newly public ↵Simon McVittie2006-11-301-1/+1
| | | | low-level methods
* Document the absence of dbus.mainloop.MainLoop in this release.Simon McVittie2006-11-301-7/+47
| | | | Add get_object_by_unique_name to Bus objects.
* dbus/_dbus.py: Import get_default_main_loop, set_default_main_loopSimon McVittie2006-11-301-2/+12
|
* Add short-term backwards compatibility with dbus_bindings (various programs ↵Simon McVittie2006-11-221-0/+34
| | | | try to catch dbus_bindings.DBusException)
* Add improved main-loop integration.Simon McVittie2006-11-221-39/+35
| | | | | | Currently only GLib (with the default main context) and a "null main loop" are supported, but a pure-Python main loop could be supported without incompatible API changes.
* dbus._dbus, dbus.proxies: Raise RuntimeError when user tries to do async ↵Simon McVittie2006-11-151-0/+10
| | | | | | | | calls or receive signals without a main loop This makes the Connection base class useless, but should let people know that they need to use dbus.glib for async functionality. I do intend to replace the mainloop integration so GLib isn't the only option.
* dbus._dbus, cross-test-server: fix signal calling convention support, and ↵Simon McVittie2006-11-151-1/+2
| | | | test it in cross-test-server
* dbus._dbus, dbus.matchrules, dbus.proxies: Support utf8_strings and ↵Simon McVittie2006-11-151-9/+43
| | | | byte_arrays calling convention options to signal handlers. Handle arg matches containing "'" correctly
* dbus._dbus: WhitespaceSimon McVittie2006-11-151-5/+6
|
* Seth was a Red Hat employee when contributing to dbus-python: alter ↵Simon McVittie2006-10-051-2/+1
| | | | copyright notices accordingly
* dbus/_dbus.py, dbus/proxies.py: Amend docstrings for signal receivingSimon McVittie2006-09-281-6/+12
|
* Add copyright, AFL2.1, GPL2 notices, which might even be correct...Simon McVittie2006-09-271-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.
* dbus/_dbus.py: Now that Bus subclasses Connection, simplify signature of ↵Simon McVittie2006-09-271-2/+2
| | | | signal filter
* Throughout dbus-python: Use the C implementation.Simon McVittie2006-09-261-42/+14
| | | | | | 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.
* dbus/_dbus.py: More docstringsSimon McVittie2006-09-081-2/+28
|
* dbus/_dbus.py: Add exceptions to __all__ so they'll be imported into __init__Simon McVittie2006-09-061-1/+8
|