dbus service: XML parsing, force 'direction' attribute of 'arg' as in if not defined
authorFrederic PAUT <frederic.paut@linux.intel.com>
Thu, 21 Mar 2013 13:29:36 +0000 (14:29 +0100)
committerFrederic PAUT <frederic.paut@linux.intel.com>
Thu, 21 Mar 2013 13:29:36 +0000 (14:29 +0100)
cloudeebus/cloudeebus.py

index 59d6d45..6f46a85 100755 (executable)
@@ -235,6 +235,8 @@ class XmlCb_Parser: # The target object of the parser
         # Set signature (in/out & name) for method
         if (tag == 'arg'):
             if (self.current == 'method'):
+                if (attrib.has_key('direction') == False):
+                    attrib['direction'] = "in"
                 self.dynDBusClass.add_signature(attrib['name'],
                                                 attrib['direction'],
                                                 attrib['type'])