493 for blocktype in category["list"]: |
493 for blocktype in category["list"]: |
494 blockname = blocktype["name"].upper() |
494 blockname = blocktype["name"].upper() |
495 if blocktype["type"] == "function" and blockname not in self.Keywords and blockname not in self.Variables.keys(): |
495 if blocktype["type"] == "function" and blockname not in self.Keywords and blockname not in self.Variables.keys(): |
496 interface = dict([(name, {}) for name, type, modifier in blocktype["inputs"] + blocktype["outputs"] if name != '']) |
496 interface = dict([(name, {}) for name, type, modifier in blocktype["inputs"] + blocktype["outputs"] if name != '']) |
497 for param in ["EN", "ENO"]: |
497 for param in ["EN", "ENO"]: |
498 if not interface.has_key(param): |
498 if not param in interface: |
499 interface[param] = {} |
499 interface[param] = {} |
500 if self.Functions.has_key(blockname): |
500 if blockname in self.Functions: |
501 self.Functions[blockname]["interface"].update(interface) |
501 self.Functions[blockname]["interface"].update(interface) |
502 self.Functions[blockname]["extensible"] |= blocktype["extensible"] |
502 self.Functions[blockname]["extensible"] |= blocktype["extensible"] |
503 else: |
503 else: |
504 self.Functions[blockname] = {"interface": interface, |
504 self.Functions[blockname] = {"interface": interface, |
505 "extensible": blocktype["extensible"]} |
505 "extensible": blocktype["extensible"]} |