Esempio n. 1
0
 def create_api_keypair(api_id, api_key, user_id):
     if not EveApiKeyPair.objects.filter(api_id=api_id).exists():
         api_pair = EveApiKeyPair()
         api_pair.api_id = api_id
         api_pair.api_key = api_key
         api_pair.user = user_id
         api_pair.save()
Esempio n. 2
0
 def create_api_keypair(api_id, api_key, user_id):
     if not EveApiKeyPair.objects.filter(api_id=api_id).exists():
         api_pair = EveApiKeyPair()
         api_pair.api_id = api_id
         api_pair.api_key = api_key
         api_pair.user = user_id
         api_pair.save()
Esempio n. 3
0
 def create_api_keypair(api_id, api_key, user_id):
     logger.debug("Creating api keypair id %s for user_id %s" % (api_id, user_id))
     if not EveApiKeyPair.objects.filter(api_id=api_id).exists():
         api_pair = EveApiKeyPair()
         api_pair.api_id = api_id
         api_pair.api_key = api_key
         api_pair.user = user_id
         api_pair.save()
         logger.info("Created api keypair id %s for user %s" % (api_id, user_id))
     else:
         logger.warn("Attempting to create existing api keypair with id %s" % api_id)