ajoute DBG_INTRANET
This commit is contained in:
parent
ebeab8a0a0
commit
52c3795255
4 changed files with 12 additions and 16 deletions
|
@ -168,12 +168,9 @@ def generate(mail, params, lang=default_language, lang_fallback=default_language
|
|||
def validation_url(view_name, data='', debug=False):
|
||||
"""Enregistre une nouvelle url pour le module "validation" de l'intranet."""
|
||||
import requests
|
||||
if debug:
|
||||
CA = False
|
||||
ROOT = 'https://intranet-dev.crans.org'
|
||||
else:
|
||||
CA = '/etc/ssl/certs/cacert.org.pem'
|
||||
ROOT = 'https://intranet2.crans.org'
|
||||
HOST = os.getenv('DBG_INTRANET', 'intranet2.crans.org')
|
||||
CA = '/etc/ssl/certs/cacert.org.pem'
|
||||
ROOT = 'https://%s' % HOST
|
||||
url = ROOT + '/validation/register/%s/' % view_name
|
||||
payload = {
|
||||
'data': json.dumps(data),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue