def prune(self):
        """
        Remove anything which shouldn't be displayed.
        """
        self.boundprocs = [ obj for obj in self.boundprocs if obj.permission in self.display ]
        self.variables = [ obj for obj in self.variables if obj.permission in self.display ]
        for obj in self.boundprocs + self.variables:
            obj.visible = True
def prune ( self ) : self . boundprocs = [ obj for obj in self . boundprocs if obj . permission in self . display ] self . variables = [ obj for obj in self . variables if obj . permission in self . display ] for obj in self . boundprocs + self . variables : obj . visible = True
Remove anything which shouldn't be displayed.