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)
|
VARIABLES = re.sub('[$$]', '', VARIABLES)
|
||||||
|
|
||||||
#######TODO REMPLACER LA TEMPLATE
|
#######TODO REMPLACER LA TEMPLATE
|
||||||
|
|
||||||
for i in VARIABLES.split():
|
for i in VARIABLES.split():
|
||||||
j = '$$' + i
|
j = '$$' + i
|
||||||
key = fs.getvalue(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
|
#######TODO ECRIRE LE FICHIER
|
||||||
|
|
||||||
@ -57,8 +62,8 @@ TEMPLATE = htmlsyntax(TEMPLATE)
|
|||||||
#######TODO GENERATION DES LETSENCRYPT
|
#######TODO GENERATION DES LETSENCRYPT
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
printheader()
|
printheader()
|
||||||
|
|
||||||
# BODY
|
# BODY
|
||||||
|
|
||||||
print('<pre><b>Contenu de', VHOSTNAME, '</b><p>', TEMPLATE, '</p></pre>')
|
print('<pre><b>Contenu de', VHOSTNAME, '</b><p>', TEMPLATE, '</p></pre>')
|
||||||
|
Reference in New Issue
Block a user