Fixed major bug caused by having request variables in the global scope. Add ability to sepecify devices for which requests/responses will be dumped to file.

This commit is contained in:
Zaid Abdulla committed 2013-01-18 16:24:13 +03:00
1 parent ece1289ff8
commit 5b7e937cd8
3 files changed
+47 -57

No files matched your search

+2 -2
View File
@@ -38,10 +38,10 @@ sessionId = (xml) ->
deviceId = (xml) ->
e = xml.find('//soap-env:Envelope/soap-env:Body/cwmp:Inform/DeviceId/child::*', NAMESPACES)
e = xml.get('//soap-env:Envelope/soap-env:Body/cwmp:Inform/DeviceId', NAMESPACES)
if e?
id = {}
for n in e
for n in e.find('//child::*')
id[n.name()] = trim(n.text())
return id
return undefined