'Returns a list of OIDs of all available schema
elements of a given schema element class.'

def listall(self, schema_element_class, schema_element_filters=None):

    avail_se = self.sed[schema_element_class]
    if schema_element_filters:
        result = []
        for se_key in avail_se.keys():
            se = avail_se[se_key]
            for (fk, fv) in schema_element_filters:
                try:
                    if (getattr(se, fk) in fv):
                        result.append(se_key)
                except AttributeError:
                    pass
    else:
        result = avail_se.keys()
    return result
