'Returns any entities with the specified descriptor'

def with_descriptor(self, descriptor):

    res = {}
    desc = ('%s_descriptor' % descriptor)
    for (eid, ent) in self.items():
        if (desc in ent):
            res[eid] = ent
    return res
