objdictgen/node.py
changeset 418 64a8c24b61a5
parent 327 b904d9a99e28
child 453 c74a73474cce
--- a/objdictgen/node.py	Fri Mar 14 10:55:34 2008 +0100
+++ b/objdictgen/node.py	Wed Mar 19 16:08:12 2008 +0100
@@ -391,6 +391,8 @@
 
 class Node:
     
+    DefaultStringSize = 10
+    
     def __init__(self, name = "", type = "slave", id = 0, description = "", profilename = "DS-301", profile = {}, specificmenu = []):
         self.Name = name
         self.Type = type
@@ -480,6 +482,18 @@
         self.Profile = profile
     
     """
+    Return the default string size
+    """
+    def GetDefaultStringSize(self):
+        return self.DefaultStringSize
+    
+    """
+    Define the default string size
+    """
+    def SetDefaultStringSize(self, size):
+        self.DefaultStringSize = size
+    
+    """
     Define the DS-302 Profile
     """
     def SetDS302Profile(self, profile):