- print "No methodID %s !!" % (methodId)
-
- def jsonEncodeTupleKeyDict(self, data):
- ndict = dict()
- # creates new dictionary with the original tuple converted to json string
- dataLen = len(data)
- string = ""
- for index in range(dataLen):
- for key in data[index]:
- value = data[index][key]
- print "key=" + key
- print "value=" + str(value)
- nkey = str(key)
- nvalue = ""
- print "JSON key=" + nkey
- if (isinstance(value, dbus.Array)):
- # Searching dbus byte in array...
- ValueLen = len(value)
- nvalue = []
- for indexValue in range(ValueLen):
- a = value[indexValue]
- if (isinstance(a, dbus.Byte)):
- a = int(value[indexValue])
- nvalue.append(a)
- else:
- nvalue = str(value[indexValue])
-
- print "JSON value=" + str(nvalue)
- ndict[nkey] = nvalue
-
- return ndict
-
- def srvCB(self, name, async_succes_cb, async_error_cb, *args):
- methodId = self.srvName + "#" + self.agentObjectPath + "#" + name
+ raise Exception("No methodID " + methodId)
+
+ def srvCB(self, srvName, name, objPath, ifName, async_succes_cb, async_error_cb, *args):
+ methodId = srvName + "#" + objPath + "#" + ifName + "#" + name