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) 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)
if key is None:
TEMPLATE = TEMPLATE.replace(j,'')
else:
TEMPLATE = TEMPLATE.replace(j, key) TEMPLATE = TEMPLATE.replace(j, key)
#######TODO ECRIRE LE FICHIER #######TODO ECRIRE LE FICHIER
VHOSTFILE = open(VHOSTPATH + VHOSTNAME, 'w') VHOSTFILE = open(VHOSTPATH + VHOSTNAME, 'w')
@ -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>')