From fb5aa9f2be044d02880a395f77b485528840e528 Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Tue, 24 Mar 2020 02:45:27 +0100 Subject: [PATCH] fix namespace collision with 'config' --- screenless/bureau/ihr/ihrweb.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/screenless/bureau/ihr/ihrweb.py b/screenless/bureau/ihr/ihrweb.py index bc9ae97..0af998f 100644 --- a/screenless/bureau/ihr/ihrweb.py +++ b/screenless/bureau/ihr/ihrweb.py @@ -10,8 +10,8 @@ class IhrApp(Bottle): super(IhrApp, self).__init__() self.name = "IHR App" self.route("/", callback=self.index) - self.route("/config/", callback=self.config) - self.route("/config/", callback=self.config, method="POST") + self.route("/config/", callback=self.bureau_config) + self.route("/config/", callback=self.bureau_config, method="POST") self.bureaus = [] def index(self): @@ -23,16 +23,16 @@ class IhrApp(Bottle): " return out - def config(self, bureau): + def bureau_config(self, bureau): # parse the config and make it into a form out = "

config file for " + bureau + "

\n" basedir = os.path.expanduser("~/.screenless")