summaryrefslogtreecommitdiff
path: root/lorrycontroller/confparser.py
diff options
context:
space:
mode:
Diffstat (limited to 'lorrycontroller/confparser.py')
-rw-r--r--lorrycontroller/confparser.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lorrycontroller/confparser.py b/lorrycontroller/confparser.py
index 00a9fe1..71becd7 100644
--- a/lorrycontroller/confparser.py
+++ b/lorrycontroller/confparser.py
@@ -30,11 +30,14 @@ class LorryControllerConfig(object):
def __init__(self, app, confpath):
self.app = app
+ self.confpath = confpath
self.lorries = {}
self.configs = {}
self.duetimes = {}
self.troves = []
- confpath = os.path.join(app.settings['work-area'], confpath)
+
+ def parse_config(self):
+ confpath = os.path.join(self.app.settings['work-area'], self.confpath)
logging.info("Parsing configuration: %s" % confpath)
try:
with open(confpath, "r") as fh:
@@ -260,6 +263,7 @@ class LorryControllerConfig(object):
def update_troves(self, statemgr):
# Now that we have a state manager we can look at the trove data.
for trove in self.troves:
+ self.app.html.set_processing(trove['uuid'])
trove_state = statemgr.get_trove(trove['uuid'])
self.update_trove(trove, trove_state)