Bug on OCTET_STRING display fixed
authorlbessard
Sun, 09 Dec 2007 16:57:43 +0100
changeset 333 7e553315ef46
parent 332 97a7a0538dd1
child 334 3240ff752bc2
Bug on OCTET_STRING display fixed
objdictgen/nodemanager.py
--- a/objdictgen/nodemanager.py	Sun Dec 09 16:56:44 2007 +0100
+++ b/objdictgen/nodemanager.py	Sun Dec 09 16:57:43 2007 +0100
@@ -1045,7 +1045,7 @@
                         editor["value"] = "map"
                         dic["value"] = node.GetMapName(dic["value"])
                     else:
-                        if dic["type"].startswith("VISIBLE_STRING"):
+                        if dic["type"].startswith("VISIBLE_STRING") or dic["type"].startswith("OCTET_STRING"):
                             editor["value"] = "string"
                         elif dic["type"] in ["TIME_OF_DAY","TIME_DIFFERENCE"]:
                             editor["value"] = "time"
@@ -1072,7 +1072,7 @@
                                 editor["value"] = "number"
                             elif values[0] == "REAL":
                                 editor["value"] = "float"
-                            elif values[0] == "VISIBLE_STRING":
+                            elif values[0] in ["VISIBLE_STRING", "OCTET_STRING"]:
                                 editor["length"] = values[0]
                         result = range_model.match(dic["type"])
                         if result: