You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
haproxy-wi/app/diff.py

28 lines
620 B

#!/usr/bin/env python3
import html
import cgi
import funct
7 years ago
import ovw
form = cgi.FieldStorage()
serv = form.getvalue('serv')
left = form.getvalue('left')
right = form.getvalue('right')
funct.head("Compare HAproxy configs")
funct.check_config()
funct.check_login()
7 years ago
funct.chooseServer("diff.py#diff", "Compare HAproxy configs", "n", onclick="showCompareConfigs()")
7 years ago
print('<div id="ajax-compare">')
7 years ago
if serv is not None and form.getvalue('open') is not None :
ovw.show_compare_configs(serv)
7 years ago
print('</div><div id=ajax>')
if serv is not None and right is not None:
7 years ago
ovw.comapre_show()
print('</div>')
funct.footer()