mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Reverted default use of pyhp until parity achieved
This commit is contained in:
parent
a61208a2f8
commit
f064dd602e
@ -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
|
||||
|
||||
|
@ -56,4 +56,4 @@ NAME = "Generic Maloja User"
|
||||
[Misc]
|
||||
|
||||
EXPERIMENTAL_FEATURES = no
|
||||
USE_PYHP = yes
|
||||
USE_PYHP = no
|
||||
|
Loading…
Reference in New Issue
Block a user