[pkg-fso-commits] [SCM] Various useful tools for an FSO installation branch, master, updated. debian/0.git20080812.2-32-gb5a13bb

Michael 'Mickey' Lauer mickey at vanille-media.de
Sun Sep 27 16:11:40 UTC 2009


The following commit has been merged in the master branch:
commit e2698d54e2bec9a61ac858f9773d9ca1b78cc9a5
Author: Michael 'Mickey' Lauer <mickey at vanille-media.de>
Date:   Wed Oct 22 17:40:56 2008 +0200

    honor boolean type (thanks Frederik Sdun)

diff --git a/mickeydbus/mdbus b/mickeydbus/mdbus
index f81eeb5..0b6550b 100755
--- a/mickeydbus/mdbus
+++ b/mickeydbus/mdbus
@@ -7,7 +7,7 @@ Mickey's own dbus introspection utility.
 GPLv2 or later
 """
 
-__version__ = "0.9.9.6"
+__version__ = "0.9.9.7"
 
 from xml.parsers.expat import ExpatError, ParserCreate
 from dbus.exceptions import IntrospectionParserException
@@ -176,6 +176,8 @@ def dbus_to_python(v):
         return [dbus_to_python(x) for x in v]
     elif isinstance(v, dbus.Struct) or type(v) == types.TupleType:
         return tuple(dbus_to_python(x) for x in v)
+    elif isinstance(v, dbus.Boolean) or type(v) == types.BooleanType:
+        return bool(v)
     else:
         raise TypeError("Can't convert type %s to python object" % type(v))
 

-- 
Various useful tools for an FSO installation



More information about the pkg-fso-commits mailing list