<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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