Request flow seems to be working

This commit is contained in:
richard-dds
2018-08-02 10:59:05 -04:00
parent ed0893b4a0
commit 4ffbbb3471
5 changed files with 266 additions and 5 deletions

View File

@@ -46,7 +46,7 @@ def make_flask_callbacks(app):
def set_globals():
g.navigationContext = 'workspace' if re.match('\/workspaces\/[A-Za-z0-9]*', request.url) else 'global'
g.dev = os.getenv("TORNADO_ENV", "dev") == "dev"
g.matchesPath = lambda href: re.match('^'+href, request.url)
g.matchesPath = lambda href: re.match('^'+href, request.path)
g.modalOpen = request.args.get("modal", False)
g.current_user = {
"id": "cce17030-4109-4719-b958-ed109dbb87c8",