From 7bcc3624a08672ae227bcb18bdb9f3a1ab958095 Mon Sep 17 00:00:00 2001 From: Mark Murnane Date: Wed, 1 May 2024 22:09:14 -0400 Subject: [PATCH] Removing default route --- sideboard/server.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/sideboard/server.py b/sideboard/server.py index 08f1693..1aa358f 100755 --- a/sideboard/server.py +++ b/sideboard/server.py @@ -170,16 +170,16 @@ def mount(root, script_name='', config=None): assert script_name not in cherrypy.tree.apps, '{} has already been mounted, probably by another plugin'.format(script_name) return orig_mount(root, script_name, recursive_coerce(config)) -orig_mount = cherrypy.tree.mount -cherrypy.tree.mount = mount -root = Root() -if config['cherrypy']['tools.cpstats.on']: - root.stats = cpstats.StatsPage() -cherrypy.tree.mount(root, '', app_config) - -if config['cherrypy']['profiling.on']: - # If profiling is turned on then expose the web UI, otherwise ignore it. - from sideboard.lib import Profiler - cherrypy.tree.mount(Profiler(config['cherrypy']['profiling.path']), '/profiler') - -sys.modules.pop('six.moves.winreg', None) # kludgy workaround for CherryPy's autoreloader erroring on winreg for versions which have this +#orig_mount = cherrypy.tree.mount +#cherrypy.tree.mount = mount +#root = Root() +#if config['cherrypy']['tools.cpstats.on']: +# root.stats = cpstats.StatsPage() +#cherrypy.tree.mount(root, '', app_config) + +#if config['cherrypy']['profiling.on']: +# # If profiling is turned on then expose the web UI, otherwise ignore it. +# from sideboard.lib import Profiler +# cherrypy.tree.mount(Profiler(config['cherrypy']['profiling.path']), '/profiler') + +#sys.modules.pop('six.moves.winreg', None) # kludgy workaround for CherryPy's autoreloader erroring on winreg for versions which have this