- results = execute_query(query)
- if not results:
- raise Exception, "Authority not found: %s" % authority_hrn
- result, = results
- return result['pi_users']
+ results = execute_query(request, query)
+ # NOTE: temporarily commented. Because results is giving empty list.
+ # Needs more debugging
+ #if not results:
+ # raise Exception, "Authority not found: %s" % authority_hrn
+ #result, = results
+ #return result['pi_users']
+ return results