# HG changeset patch
# User lbessard
# Date 1197215863 -3600
# Node ID 7e553315ef46d6967e53bcae148521b85a5c4ced
# Parent  97a7a0538dd11e39e1d32416f35e60878f35556e
Bug on OCTET_STRING display fixed

diff -r 97a7a0538dd1 -r 7e553315ef46 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: