From 2b9417707a6cac377e2caca047fde8169236d93e Mon Sep 17 00:00:00 2001 From: "John (J5) Palmieri" Date: Tue, 18 Oct 2005 04:38:05 +0000 Subject: * glib/dbus-gvalue-utils.c (hash_free_from_gtype): handle gdouble and G_TYPE_VALUE_ARRAY (DBUS_TYPE_STRUCT) (gvalue_from_hash_value, hash_value_from_gvalue): handle gdouble * glib/dbus-gvalue.c (dbus_gvalue_to_signature): add missing DBUS_STRUCT_BEGIN_CHAR and DBUS_STRUCT_END_CHAR charaters when constructing struct signatures * python/_dbus.py (Bus): handle private connections using the private keyword in the constructor. defaults to private=False (Bus::close): new method to close a connection to the bus * python/dbus_bindings.pyx (Connection::close): renamed method was previously called disconnect (bus_get): now supports getting a private connection * python/proxies.py (ProxyMethod::__call__): check if ignore_reply keyword is set to True. if it is, execute the method without waiting for a reply (ProxyObject::_introspect_execute_queue): new method for executing all the pending methods that were waiting for the introspect to finish. this is called when introspect either succeeds or fails (ProxyObject::_introspect_error_handler): call queued methods --- test/python/test-client.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'test/python/test-client.py') diff --git a/test/python/test-client.py b/test/python/test-client.py index f90ce13c..57965cc7 100755 --- a/test/python/test-client.py +++ b/test/python/test-client.py @@ -25,9 +25,9 @@ test_types_vals = [1, 12323231, 3.14159265, 99999999.99, "dude", "123", "What is all the fuss about?", "gob@gob.com", [1,2,3], ["how", "are", "you"], [1.23,2.3], [1], ["Hello"], (1,2,3), (1,), (1,"2",3), ("2", "what"), ("you", 1.2), - {1:"a", 2:"b"}, {"a":1, "b":2}, {1:1.1, 2:2.2}, {1.1:"a", 1.2:"b"}, - [[1,2,3],[2,3,4]], [["a","b"],["c","d"]], - ([1,2,3],"c", 1.2, ["a","b","c"], {"a": (1,"v"), "b": (2,"d")}) + {1:"a", 2:"b"}, {"a":1, "b":2}, #{"a":(1,"B")}, + {1:1.1, 2:2.2}, [[1,2,3],[2,3,4]], [["a","b"],["c","d"]], + #([1,2,3],"c", 1.2, ["a","b","c"], {"a": (1,"v"), "b": (2,"d")}) ] class TestDBusBindings(unittest.TestCase): @@ -129,9 +129,6 @@ class TestDBusPythonToGLibBindings(unittest.TestCase): print "Call test passed" self.assert_(True) - #this crashes glib so disable it for now - #until glib is fixed - """ def testPythonTypes(self): print "\n********* Testing Python Types ***********" @@ -139,11 +136,9 @@ class TestDBusPythonToGLibBindings(unittest.TestCase): print "Testing %s"% str(send_val) recv_val = self.iface.EchoVariant(send_val) self.assertEquals(send_val, recv_val) - """ if __name__ == '__main__': gobject.threads_init() dbus.glib.init_threads() unittest.main() - -- cgit