fixed bug in eds_utils.py (forget to convert to upper case)
authorgreg
Wed, 18 Mar 2009 09:54:04 +0100
changeset 542 4328444b039b
parent 541 dcc7f1323ce5
child 543 ea6cc9b95838
fixed bug in eds_utils.py (forget to convert to upper case)
objdictgen/eds_utils.py
--- a/objdictgen/eds_utils.py	Wed Mar 18 09:10:54 2009 +0100
+++ b/objdictgen/eds_utils.py	Wed Mar 18 09:54:04 2009 +0100
@@ -322,9 +322,9 @@
                     # value can be preceded and followed by whitespaces, so we escape them
                     value = value.strip()
                     # First case, value starts with "$NODEID", then it's a formula
-                    if value.startswith("$NODEID"):
+                    if value.upper().startswith("$NODEID"):
                         try:
-                            test = int(value.replace("$NODEID+", ""), 16)
+                            test = int(value.upper().replace("$NODEID+", ""), 16)
                             computed_value = "\"%s\""%value
                         except:
                             raise SyntaxError, "\"%s\" is not a valid formula for attribute \"%s\" of section \"[%s]\""%(value, keyname, section_name)