equal
deleted
inserted
replaced
623 values = [len(self.Dictionary[index])] |
623 values = [len(self.Dictionary[index])] |
624 for value in self.Dictionary[index]: |
624 for value in self.Dictionary[index]: |
625 values.append(self.CompileValue(value, index)) |
625 values.append(self.CompileValue(value, index)) |
626 return values |
626 return values |
627 else: |
627 else: |
628 return self.Dictionary[index] |
628 return self.CompileValue(self.Dictionary[index], index) |
629 elif subIndex == 0: |
629 elif subIndex == 0: |
630 if type(self.Dictionary[index]) == ListType: |
630 if type(self.Dictionary[index]) == ListType: |
631 return len(self.Dictionary[index]) |
631 return len(self.Dictionary[index]) |
632 else: |
632 else: |
633 return self.CompileValue(self.Dictionary[index], index) |
633 return self.CompileValue(self.Dictionary[index], index) |
832 |
832 |
833 def GetBaseIndex(self, index): |
833 def GetBaseIndex(self, index): |
834 for mapping in self.GetMappings(): |
834 for mapping in self.GetMappings(): |
835 result = FindIndex(index, mapping) |
835 result = FindIndex(index, mapping) |
836 if result != None: |
836 if result != None: |
837 return (index - result) / mapping[result]["incr"] |
837 return (index - result) / mapping[result].get("incr", 1) |
838 result = FindIndex(index, MappingDictionary) |
838 result = FindIndex(index, MappingDictionary) |
839 if result != None: |
839 if result != None: |
840 return (index - result) / MappingDictionary[result]["incr"] |
840 return (index - result) / MappingDictionary[result].get("incr", 1) |
841 return 0 |
841 return 0 |
842 |
842 |
843 def GetCustomisedTypeValues(self, index): |
843 def GetCustomisedTypeValues(self, index): |
844 values = self.GetEntry(index) |
844 values = self.GetEntry(index) |
845 customisabletypes = self.GetCustomisableTypes() |
845 customisabletypes = self.GetCustomisableTypes() |