objdictgen/node.py
changeset 227 f76c64f66097
parent 205 dac0f9b4e3f8
child 236 905677ed00f3
--- a/objdictgen/node.py	Fri Jun 22 17:46:18 2007 +0200
+++ b/objdictgen/node.py	Mon Jun 25 17:01:39 2007 +0200
@@ -625,7 +625,7 @@
                         values.append(self.CompileValue(value, index))
                     return values
                 else:
-                    return self.Dictionary[index]
+                    return self.CompileValue(self.Dictionary[index], index)
             elif subIndex == 0:
                 if type(self.Dictionary[index]) == ListType:
                     return len(self.Dictionary[index])
@@ -834,10 +834,10 @@
         for mapping in self.GetMappings():
             result = FindIndex(index, mapping)
             if result != None:
-                return (index - result) / mapping[result]["incr"]
+                return (index - result) / mapping[result].get("incr", 1)
         result = FindIndex(index, MappingDictionary)
         if result != None:
-            return (index - result) / MappingDictionary[result]["incr"]
+            return (index - result) / MappingDictionary[result].get("incr", 1)
         return 0
 
     def GetCustomisedTypeValues(self, index):