--- a/objdictgen/eds_utils.py Mon May 28 18:08:24 2007 +0200
+++ b/objdictgen/eds_utils.py Tue May 29 12:02:18 2007 +0200
@@ -48,8 +48,8 @@
ACCESS_TRANSLATE = {"ro" : "ro", "wo" : "wo", "rw" : "rw", "rwr" : "rw", "rww" : "rw", "const" : "ro"}
# Function for verifying data values
-is_integer = lambda x: type(x) == IntType
-is_string = lambda x: type(x) == StringType
+is_integer = lambda x: type(x) in (IntType, LongType)
+is_string = lambda x: type(x) in (StringType, UnicodeType)
is_boolean = lambda x: x in (0, 1)
# Define checking of value for each attribute