#168: Added prototype of Oauth2 handler with example app

This commit is contained in:
frikky
2021-08-19 00:58:01 +02:00
parent 56185e53e2
commit 53b02e7c46
8 changed files with 235 additions and 19 deletions
+3 -1
View File
@@ -1529,6 +1529,8 @@ class AppBase:
#print(globals())
print("Running liquid with data of length %d" % len(template))
run = Liquid(template, {'mode': 'python'})
# Can't handle self yet (?)
ret = run.render(**globals())
return ret
#try:
@@ -2059,7 +2061,7 @@ class AppBase:
#json_replacement = tmpitem.replace(actualitem[index][0], replacement, 1)
#print("AFTER POST replacement: %s" % json_replacement)
#json_replacement = replacement
json_replacement = replacement
try:
json_replacement = json.loads(replacement)
except json.decoder.JSONDecodeError as e: