TextViewer.py
changeset 549 b0d6819119c3
parent 546 f28df922efbe
child 566 6014ef82a98a
equal deleted inserted replaced
548:0b6ab74f4b89 549:b0d6819119c3
   342         for category in self.Controler.GetBlockTypes(self.TagName, self.Debug):
   342         for category in self.Controler.GetBlockTypes(self.TagName, self.Debug):
   343             for blocktype in category["list"]:
   343             for blocktype in category["list"]:
   344                 blockname = blocktype["name"].upper()
   344                 blockname = blocktype["name"].upper()
   345                 if blocktype["type"] == "function" and blockname not in self.Keywords and blockname not in self.Variables.keys():
   345                 if blocktype["type"] == "function" and blockname not in self.Keywords and blockname not in self.Variables.keys():
   346                     interface = dict([(name, {}) for name, type, modifier in blocktype["inputs"] + blocktype["outputs"] if name != ''])
   346                     interface = dict([(name, {}) for name, type, modifier in blocktype["inputs"] + blocktype["outputs"] if name != ''])
       
   347                     for param in ["EN", "ENO"]:
       
   348                         if not interface.has_key(param):
       
   349                             interface[param] = {}
   347                     if self.Functions.has_key(blockname):
   350                     if self.Functions.has_key(blockname):
   348                         self.Functions[blockname]["interface"].update(interface)
   351                         self.Functions[blockname]["interface"].update(interface)
   349                         self.Functions[blockname]["extensible"] |= blocktype["extensible"]
   352                         self.Functions[blockname]["extensible"] |= blocktype["extensible"]
   350                     else:
   353                     else:
   351                         self.Functions[blockname] = {"interface": interface,
   354                         self.Functions[blockname] = {"interface": interface,