def ApprovalFind(object_id, token=None):
  user = getpass.getuser()
  object_id = rdfvalue.RDFURN(object_id)
  try:
    approved_token = aff4.Approval.GetApprovalForObject(
        object_id, token=token, username=user)
    print "Found token %s" % str(approved_token)
    return approved_token
  except access_control.UnauthorizedAccess:
    print "No token available for access to %s" % object_id
Given a list of template names, returns the first that can be loaded.
dataset/ETHPy150Open google/grr/grr/lib/console_utils.py/ApprovalFind--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/template/loader.py/select_template