Reverted default use of pyhp until parity achieved

This commit is contained in:
Krateng 2019-11-19 21:29:29 +01:00
parent a61208a2f8
commit f064dd602e
3 changed files with 8 additions and 3 deletions

View File

@ -1 +1 @@
version = 1,5,10
version = 1,5,11

View File

@ -149,8 +149,13 @@ def static_html(name):
linkheaders = ["</css/style.css>; rel=preload; as=style"]
keys = remove_identical(FormsDict.decode(request.query))
pyhp_file = os.path.exists("website/" + name + ".pyhp")
html_file = os.path.exists("website/" + name + ".html")
pyhp_pref = settings.get_settings("USE_PYHP")
# if a pyhp file exists, use this
if os.path.exists("website/" + name + ".pyhp") and settings.get_settings("USE_PYHP"):
if (pyhp_file and pyhp_pref) or (pyhp_file and not html_file):
from doreah.pyhp import file
environ = {} #things we expose to the pyhp pages

View File

@ -56,4 +56,4 @@ NAME = "Generic Maloja User"
[Misc]
EXPERIMENTAL_FEATURES = no
USE_PYHP = yes
USE_PYHP = no