controls/SearchResultPanel.py
branchsearch_in_CTN
changeset 2525 9812b332f350
parent 2524 c80b0d864475
child 2529 efb532295607
equal deleted inserted replaced
2524:c80b0d864475 2525:9812b332f350
   205 
   205 
   206                 children = element_infos.setdefault("children", [])
   206                 children = element_infos.setdefault("children", [])
   207                 for infos, start, end, text in results:
   207                 for infos, start, end, text in results:
   208                     if len(words) == 1:  # CTN match
   208                     if len(words) == 1:  # CTN match
   209                         child_name = {"body":str(start[0])+":",
   209                         child_name = {"body":str(start[0])+":",
   210                                       "variable":_("Variable:")}[infos[1]]
   210                                       "var_inout":_("Variable:")}[infos[1]]
   211                         child_type = {"body":ITEM_CONFNODE,
   211                         child_type = {"body":ITEM_CONFNODE,
   212                                       "variable":"var_inout"}[infos[1]]
   212                                       "var_inout":"var_inout"}[infos[1]]
   213                     elif infos[1] == "name" or element_type == ITEM_DATATYPE:
   213                     elif infos[1] == "name" or element_type == ITEM_DATATYPE:
   214                         child_name = GenerateName(infos[1:])
   214                         child_name = GenerateName(infos[1:])
   215                         child_type = element_type
   215                         child_type = element_type
   216                     else:
   216                     else:
   217                         if element_type == ITEM_RESOURCE:
   217                         if element_type == ITEM_RESOURCE: