fix des formulaire vide
This commit is contained in:
parent
69dd53bc35
commit
87c11ce5d4
@ -34,10 +34,15 @@ for i in ALLVARIABLES:
|
||||
VARIABLES = re.sub('[$$]', '', VARIABLES)
|
||||
|
||||
#######TODO REMPLACER LA TEMPLATE
|
||||
|
||||
for i in VARIABLES.split():
|
||||
j = '$$' + i
|
||||
key = fs.getvalue(i)
|
||||
TEMPLATE = TEMPLATE.replace(j, key)
|
||||
if key is None:
|
||||
TEMPLATE = TEMPLATE.replace(j,'')
|
||||
else:
|
||||
TEMPLATE = TEMPLATE.replace(j, key)
|
||||
|
||||
|
||||
#######TODO ECRIRE LE FICHIER
|
||||
|
||||
@ -57,8 +62,8 @@ TEMPLATE = htmlsyntax(TEMPLATE)
|
||||
#######TODO GENERATION DES LETSENCRYPT
|
||||
|
||||
|
||||
|
||||
printheader()
|
||||
|
||||
# BODY
|
||||
|
||||
print('<pre><b>Contenu de', VHOSTNAME, '</b><p>', TEMPLATE, '</p></pre>')
|
||||
|
Reference in New Issue
Block a user