def is_association_exist(openid_url):
 is_exist = True
 try:
  uassoc = UserAssociation.objects.get(openid_url__exact=openid_url)
 except:
  is_exist = False
 return is_exist

def is_association_exist ( openid_url ) : is_exist = True try : uassoc = UserAssociation . objects . get ( openid_url__exact = openid_url ) except : is_exist = False return is_exist
test if an openid is already in database .