def findRoleID(self, name):
        """searches the roles by name and returns the role's ID"""
        for r in self:
            if r['name'].lower() == name.lower():
                return r['id']
            del r
        return None
def findRoleID ( self , name ) : for r in self : if r [ 'name' ] . lower ( ) == name . lower ( ) : return r [ 'id' ] del r return None
searches the roles by name and returns the role's ID