From f53a9209eb3b009ba0ecc68971a9e18e16222468 Mon Sep 17 00:00:00 2001 From: Squandor Date: Mon, 2 Jan 2017 08:43:30 +0100 Subject: [PATCH 1/9] add title option switches --- server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server.py b/server.py index c3178c9..438ff1a 100755 --- a/server.py +++ b/server.py @@ -42,6 +42,7 @@ def generatePage(): if not match: blockValues[component] = retrieveValue(requestedRoute, component) else: + blockValues[match.group(1)] = retrieveValue(requestedRoute, component) blockArray.append(blockValues) blockValues = {} @@ -67,6 +68,7 @@ def retrieveValue(page, component): dict[k] = v else: for sk, sv in config[page][match.group(1)][match.group(2)].iteritems(): + sv.append(match.group(2)) sv = strToList(sv) dict[sk] = sv except: From fe7897bd8b4d94675257189228e753bfe360cc11 Mon Sep 17 00:00:00 2001 From: Squandor Date: Mon, 2 Jan 2017 08:43:50 +0100 Subject: [PATCH 2/9] add title option switches --- templates/switches.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/switches.html b/templates/switches.html index a514ff1..8bed10c 100644 --- a/templates/switches.html +++ b/templates/switches.html @@ -2,7 +2,7 @@
-

Schakelaars

+

Schakelaars