def with_descriptor(self, descriptor):
        '''
        Returns any entities with the specified descriptor
        '''
        res = {}
        desc = "%s_descriptor" % descriptor
        for eid, ent in self.items():
            if desc in ent:
                res[eid] = ent
        return res
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
Returns any entities with the specified descriptor