Skip to content

Commit

Permalink
CheckPresent
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-p committed Apr 14, 2022
1 parent c10565d commit 4720d7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions node.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4720d7f

Please sign in to comment.