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,11 +34,16 @@ for i in ALLVARIABLES:
VARIABLES = re.sub('[$$]', '', VARIABLES)
#######TODO REMPLACER LA TEMPLATE
for i in VARIABLES.split():
j = '$$' + i
key = fs.getvalue(i)
if key is None:
TEMPLATE = TEMPLATE.replace(j,'')
else:
TEMPLATE = TEMPLATE.replace(j, key)
#######TODO ECRIRE LE FICHIER
VHOSTFILE = open(VHOSTPATH + VHOSTNAME, 'w')
@ -57,8 +62,8 @@ TEMPLATE = htmlsyntax(TEMPLATE)
#######TODO GENERATION DES LETSENCRYPT
printheader()
# BODY
print('<pre><b>Contenu de', VHOSTNAME, '</b><p>', TEMPLATE, '</p></pre>')