From 4720d7fee4087074933242da0792ade74b3d346b Mon Sep 17 00:00:00 2001 From: andreas-p Date: Thu, 14 Apr 2022 12:03:58 +0200 Subject: [PATCH] CheckPresent --- node.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/node.py b/node.py index 62fb226..b6b8075 100644 --- a/node.py +++ b/node.py @@ -369,6 +369,8 @@ def PopulateChildren(self): nodeinfo=self.moduleinfo()['nodes'][nodename] collText=nodeinfo.get('collection') cls=nodeinfo['class'] + if hasattr(cls, 'CheckPresent') and not cls.CheckPresent(self): + continue if collText and not isinstance(self, Collection): child=Collection(self, collText, cls) self.appendChild(child)