equal
deleted
inserted
replaced
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 |