def exclude(self, d, item):
        """ check metadata for excluded items """
        try:
            md = d.__metadata__
            pmd = getattr(md, '__print__', None)
            if pmd is None:
                return False
            excludes = getattr(pmd, 'excludes', [])
            return ( item[0] in excludes ) 
        except:
            pass
        return False
def exclude ( self , d , item ) : try : md = d . __metadata__ pmd = getattr ( md , '__print__' , None ) if pmd is None : return False excludes = getattr ( pmd , 'excludes' , [ ] ) return ( item [ 0 ] in excludes ) except : pass return False
check metadata for excluded items