diff options
| author | John (J5) Palmieri <johnp@redhat.com> | 2005-08-16 22:54:04 +0000 | 
|---|---|---|
| committer | John (J5) Palmieri <johnp@redhat.com> | 2005-08-16 22:54:04 +0000 | 
| commit | ce84a7761a567f5afaca03d0fb5c0378f293da80 (patch) | |
| tree | 7f00e7193fb6e6f07df88fa70650174916231820 /python/examples | |
| parent | 9746c7a97871508c7298a8cad88dc7daff1c2bb3 (diff) | |
	* python/__init__.py: Version updated (0, 43, 0)
	* python/dbus_bindings.pyx:
	- Fixed type objects to have self passed into __init__
	- Added the Variant type
	- Add the ability to specify types or signatures for Array, Variant and Dictionary
	- (Connection::send_with_reply_handlers): return a PendingCall object
	- (_pending_call_notification): handle the case when an error is returned
	without an error message in the body
	- (MessageIter::get_boolean): return True or False instead of an integer
	- (MessageIter::python_value_to_dbus_sig): add direct checking of types and
	add checks for objects with embeded signatures or types (Array, Variant and
	Dictionary)
	- (MessageIter::append_byte): handle case when the value is a dbus.Byte
	- (MessageIter::append_dict): handle embeded types or signatures
	- (MessageIter::append_array): handle embeded types or signatures
	- (MessageIter::append_variant): new method
	* python/proxies.py:
	- (DeferedMethod): New. Dummy executable object used when queuing calls blocking on
	introspection data
	- (ProxyMethod::__call__): add the timeout keyword for specifying longer or
	shorter timeouts for method calls
	- (ProxyObject): Add first pass at an introspection state machine
	- (ProxyObject::__init__): Add introspect keyword for turing off an on
	introspection.
	- (ProxyObject::_Introspect): Internal Introspect call that bypasses the usual
	mechanisms for sending messages.  This is to avoid a deadlock where the Intospect
	call would be queued waiting for the Introspect call to finish ;-)
	- (ProxyObject::_introspect_reply_handler): New.  This method is called when
	introspection returns with no error
	- (ProxyObject::_introspect_error_handler): New.  This method is called when
	introspection encounters an error
	- (ProxyObject::__getattr__): Code to handle different introspection states.
	Queue async calls or block blocking calls if we are introspecting.  Pass through
	as normal if we are not or are done with introspecting.
	* python/service.py: Import signal and method from decorators.py
	* python/types.py: Add Variant type
Diffstat (limited to 'python/examples')
| -rw-r--r-- | python/examples/example-client.py | 1 | ||||
| -rw-r--r-- | python/examples/list-system-services.py | 4 | 
2 files changed, 3 insertions, 2 deletions
diff --git a/python/examples/example-client.py b/python/examples/example-client.py index 7439e6bd..3d170bd4 100644 --- a/python/examples/example-client.py +++ b/python/examples/example-client.py @@ -19,3 +19,4 @@ print str(hello_reply_tuple)  print str(hello_reply_dict)  print remote_object.Introspect(dbus_interface="org.freedesktop.DBus.Introspectable") + diff --git a/python/examples/list-system-services.py b/python/examples/list-system-services.py index d4280551..4cad8717 100644 --- a/python/examples/list-system-services.py +++ b/python/examples/list-system-services.py @@ -2,6 +2,7 @@  """Lists services on the system bus  """ +  import dbus  # Get a connection to the SYSTEM bus @@ -18,5 +19,4 @@ dbus_iface = dbus.Interface(dbus_object, 'org.freedesktop.DBus')  # One of the member functions in the org.freedesktop.DBus interface  # is ListServices(), which provides a list of all the other services  # registered on this bus. Call it, and print the list. -system_service_list = dbus_object.ListNames() -print str(system_service_list) +print dbus_object.ListNames()  | 
