Skip to content
Snippets Groups Projects
Commit 5b102b34 authored by Krishnaveni's avatar Krishnaveni
Browse files

changed unichar to chr in supr_common.py to be compatible with python3. Added...

changed unichar to chr in supr_common.py to be compatible with python3. Added LOG_FILEand removed PDC_KTH from settings-default.py
parent a1abc9fb
No related branches found
No related tags found
No related merge requests found
2023-08-24 14:42:05
\ No newline at end of file
2023-08-24 14:42:05
......@@ -32,10 +32,6 @@ gidNumberStart = 6000
# Centre Resource ID in SUPR for Swestore
resource_centre_id = 9
PDC_centre_id = 7
# PDC Kerberos tag
PDC_kerberos = ""
# dcache Resource ID in SUPR for Swestore
dcache_resource_id = ""
......@@ -46,8 +42,12 @@ adminprincipal = ""
# Get a date object
LOG_DIR = "/var/logs/ldap"
LOG_DIR = "/opt/supr-ldap-integration/logs"
DELETE_LOG_FILE = LOG_DIR + "delete_" + str(today) + ".log"
LOG_FILE = LOG_DIR + "ldap_" + str(today) + ".log"
LOG_FILE_MODE = 'a'
LOG_FILE_FORMAT = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
LOG_FILE_DATEFORMAT = '%H:%M:%S'
# Mail adress to dcache admins
DCACHE_ADMIN_MAIL = ""
......
......@@ -43,7 +43,7 @@ def asciify(string):
decomp = decomposition(char)
if decomp:
temp += unichr(int(decomp.split()[0], 16))
temp += chr(int(decomp.split()[0], 16))
else:
temp += char
return temp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment