equal
deleted
inserted
replaced
1025 entry_infos = node.GetEntryInfos(index) |
1025 entry_infos = node.GetEntryInfos(index) |
1026 data = [] |
1026 data = [] |
1027 editors = [] |
1027 editors = [] |
1028 values = node.GetEntry(index, compute = False) |
1028 values = node.GetEntry(index, compute = False) |
1029 params = node.GetParamsEntry(index) |
1029 params = node.GetParamsEntry(index) |
1030 if type(values) == ListType: |
1030 if isinstance(values, ListType): |
1031 for i, value in enumerate(values): |
1031 for i, value in enumerate(values): |
1032 data.append({"value" : value}) |
1032 data.append({"value" : value}) |
1033 data[-1].update(params[i]) |
1033 data[-1].update(params[i]) |
1034 else: |
1034 else: |
1035 data.append({"value" : values}) |
1035 data.append({"value" : values}) |
1040 dic["name"] = infos["name"] |
1040 dic["name"] = infos["name"] |
1041 dic["type"] = node.GetTypeName(infos["type"]) |
1041 dic["type"] = node.GetTypeName(infos["type"]) |
1042 dic["access"] = AccessType[infos["access"]] |
1042 dic["access"] = AccessType[infos["access"]] |
1043 dic["save"] = OptionType[dic["save"]] |
1043 dic["save"] = OptionType[dic["save"]] |
1044 editor = {"subindex" : None, "save" : "option", "callback" : "option", "comment" : "string"} |
1044 editor = {"subindex" : None, "save" : "option", "callback" : "option", "comment" : "string"} |
1045 if type(values) == ListType and i == 0: |
1045 if isinstance(values, ListType) and i == 0: |
1046 editor["name"] = None |
1046 editor["name"] = None |
1047 editor["type"] = None |
1047 editor["type"] = None |
1048 if 0x1600 <= index <= 0x17FF or 0x1A00 <= index <= 0x1C00: |
1048 if 0x1600 <= index <= 0x17FF or 0x1A00 <= index <= 0x1C00: |
1049 editor["access"] = "raccess" |
1049 editor["access"] = "raccess" |
1050 else: |
1050 else: |