mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Updated to new pyhp
This commit is contained in:
parent
b955777637
commit
3746111ee8
2
.doreah
2
.doreah
@ -8,3 +8,5 @@ caching:
|
|||||||
folder: "cache/"
|
folder: "cache/"
|
||||||
regular:
|
regular:
|
||||||
autostart: false
|
autostart: false
|
||||||
|
pyhp:
|
||||||
|
version: 2
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
bottle>=0.12.16
|
bottle>=0.12.16
|
||||||
waitress>=1.3
|
waitress>=1.3
|
||||||
doreah>=1.1.7
|
doreah>=1.2
|
||||||
nimrodel>=0.4.9
|
nimrodel>=0.4.9
|
||||||
setproctitle>=1.1.10
|
setproctitle>=1.1.10
|
||||||
wand>=0.5.4
|
wand>=0.5.4
|
||||||
|
@ -149,15 +149,8 @@ def static_html(name):
|
|||||||
keys = remove_identical(FormsDict.decode(request.query))
|
keys = remove_identical(FormsDict.decode(request.query))
|
||||||
|
|
||||||
# if a pyhp file exists, use this
|
# if a pyhp file exists, use this
|
||||||
if os.path.exists("website/" + name + ".pyhp"):
|
if os.path.exists("website/" + name + ".pyhp") and settings.get_settings("USE_PYHP"):
|
||||||
from doreah.pyhp import file
|
from doreah.pyhp import file
|
||||||
#try:
|
|
||||||
# d = SourceFileLoader(name,"website/" + name + ".py").load_module().pyhp(keys)
|
|
||||||
# print("loaded dict")
|
|
||||||
#except:
|
|
||||||
# d = {}
|
|
||||||
# print("error")
|
|
||||||
# raise
|
|
||||||
environ = {} #things we expose to the pyhp pages
|
environ = {} #things we expose to the pyhp pages
|
||||||
|
|
||||||
# maloja
|
# maloja
|
||||||
|
@ -56,3 +56,4 @@ NAME = "Generic Maloja User"
|
|||||||
[Misc]
|
[Misc]
|
||||||
|
|
||||||
EXPERIMENTAL_FEATURES = no
|
EXPERIMENTAL_FEATURES = no
|
||||||
|
USE_PYHP = no
|
||||||
|
Loading…
Reference in New Issue
Block a user