Allow spaces in device ID. Parse xsd:int values.

This commit is contained in:
Zaid Abdulla committed 2013-01-30 00:40:13 +03:00
1 parent 49e689f7e9
commit 88c506299c
3 files changed
+15 -10

No files matched your search

+2 -2
View File
@@ -25,9 +25,9 @@ exports.arrayToHash = (arr) ->
exports.getDeviceId = (deviceIdStruct) ->
# Guaranteeing globally unique id as defined in TR-069
if deviceIdStruct['ProductClass']
return "#{escape(deviceIdStruct['OUI'])}-#{escape(deviceIdStruct['ProductClass'])}-#{escape(deviceIdStruct['SerialNumber'])}"
return "#{deviceIdStruct['OUI']}-#{deviceIdStruct['ProductClass']}-#{deviceIdStruct['SerialNumber']}"
return "#{escape(deviceIdStruct['OUI'])}-#{escape(deviceIdStruct['SerialNumber'])}"
return "#{deviceIdStruct['OUI']}-#{deviceIdStruct['SerialNumber']}"
exports.extend = (obj, mixin) ->