def roles_list():
 roles = []
 for role in ROLE_PERMISSIONS:
  roles.append(dict(text=trans_role(role), value=role))
 return roles

def roles_list ( ) : roles = [ ] for role in ROLE_PERMISSIONS : roles . append ( dict ( text = trans_role ( role ) , value = role ) ) return roles
returns list of roles for forms .