--- a/ConfigTreeNode.py Mon Mar 11 13:51:07 2019 +0100
+++ b/ConfigTreeNode.py Fri Mar 15 14:11:49 2019 +0100
@@ -36,6 +36,7 @@
import traceback
import types
import shutil
+from operator import add
from builtins import str as text
from past.builtins import execfile
@@ -121,6 +122,12 @@
return parent + "." + self.CTNName()
return self.BaseParams.getName()
+ def CTNSearch(self, criteria):
+ # TODO match config's fields name and fields contents
+ return reduce(add, [
+ CTNChild.CTNSearch(criteria)
+ for CTNChild in self.IterChildren()])
+
def GetIconName(self):
return None