PLCControler.py
branchsearch_in_CTN
changeset 2523 aa7f138648f3
parent 2520 3a1c0c161f80
child 2529 efb532295607
equal deleted inserted replaced
2521:48ebcbe7f19b 2523:aa7f138648f3
  2747     # -------------------------------------------------------------------------------
  2747     # -------------------------------------------------------------------------------
  2748     #                       Search in Current Project Functions
  2748     #                       Search in Current Project Functions
  2749     # -------------------------------------------------------------------------------
  2749     # -------------------------------------------------------------------------------
  2750 
  2750 
  2751     def SearchInProject(self, criteria):
  2751     def SearchInProject(self, criteria):
  2752         return self.Project.Search(criteria)
  2752         project_matches =  self.Project.Search(criteria)
       
  2753         print(project_matches)
       
  2754         ctn_matches =  self.CTNSearch(criteria)
       
  2755         return project_matches + ctn_matches
  2753 
  2756 
  2754     def SearchInPou(self, tagname, criteria, debug=False):
  2757     def SearchInPou(self, tagname, criteria, debug=False):
  2755         pou = self.GetEditedElement(tagname, debug)
  2758         pou = self.GetEditedElement(tagname, debug)
  2756         if pou is not None:
  2759         if pou is not None:
  2757             search_results = pou.Search(criteria, [tagname])
  2760             search_results = pou.Search(criteria, [tagname])