fix des formulaire vide

This commit is contained in:
beu 2017-12-22 22:02:43 +00:00
parent 69dd53bc35
commit 87c11ce5d4

View File

@ -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>')