'Get a schema element by name or OID with all class attributes
set including inherited class attributes'

def get_inheritedobj(self, se_class, nameoroid, inherited=None):

    import copy
    inherited = (inherited or [])
    se = copy.copy(self.sed[se_class].get(self.getoid(se_class, nameoroid)))
    if (se and hasattr(se, 'sup')):
        for class_attr_name in inherited:
            setattr(se, class_attr_name, self.get_inheritedattr(se_class, nameoroid, class_attr_name))
    return se
