ConfigTreeNode.py
changeset 1747 6046ffa2280f
parent 1746 45d6f5fba016
child 1758 845ca626db09
equal deleted inserted replaced
1746:45d6f5fba016 1747:6046ffa2280f
   321             # if match component of the name
   321             # if match component of the name
   322             if getattr(CTNInstance.BaseParams, something) == toks[0]:
   322             if getattr(CTNInstance.BaseParams, something) == toks[0]:
   323                 # if Name have other components
   323                 # if Name have other components
   324                 if len(toks) >= 2:
   324                 if len(toks) >= 2:
   325                     # Recurse in order to find the latest object
   325                     # Recurse in order to find the latest object
   326                     return CTNInstance._GetChildBySomething( something, toks[1:])
   326                     return CTNInstance._GetChildBySomething(something, toks[1:])
   327                 # No sub name -> found
   327                 # No sub name -> found
   328                 return CTNInstance
   328                 return CTNInstance
   329         # Not found
   329         # Not found
   330         return None
   330         return None
   331 
   331