From adc96c38abf1ea9292271bab167b5136849e0449 Mon Sep 17 00:00:00 2001 From: manetta Date: Fri, 3 Dec 2021 00:17:42 +0100 Subject: [PATCH] disabling the web interfaces, to not get confused between versions --- web-interface/web-interface.py | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/web-interface/web-interface.py b/web-interface/web-interface.py index e05df5e..f2438fd 100755 --- a/web-interface/web-interface.py +++ b/web-interface/web-interface.py @@ -44,28 +44,32 @@ def notes(): @APP.route('/update/', methods=['GET', 'POST']) def update(): - publication_unfolded = update_material_now(PAGENAME, WIKI) # download the latest version of the page - save(publication_unfolded, 'Unfolded') # save the html to file (without ) to file + # publication_unfolded = update_material_now(PAGENAME, WIKI) # download the latest version of the page + # save(publication_unfolded, 'Unfolded') # save the html to file (without ) to file - return flask.render_template('index.html', title=PROJECT_NAME) + # return flask.render_template('index.html', title=PROJECT_NAME) + return "This interface is disabled for now, to not confuse ourselves between versions." @APP.route('/pagedjs/', methods=['GET', 'POST']) def pagedjs(): - download_stylesheet() # download the stylesheet pad - publication_unfolded = open(f'{ DIR_PATH }/static/Unfolded.html', 'r').read() + # download_stylesheet() # download the stylesheet pad + # publication_unfolded = open(f'{ DIR_PATH }/static/Unfolded.html', 'r').read() - return flask.render_template('pagedjs.html', publication_unfolded=publication_unfolded) + # return flask.render_template('pagedjs.html', publication_unfolded=publication_unfolded) + return "This interface is disabled for now, to not confuse ourselves between versions." @APP.route('/inspect/', methods=['GET', 'POST']) def inspect(): - download_stylesheet() # download the stylesheet pad - publication_unfolded = open(f'{ DIR_PATH }/static/Unfolded.html', 'r').read() + # download_stylesheet() # download the stylesheet pad + # publication_unfolded = open(f'{ DIR_PATH }/static/Unfolded.html', 'r').read() - return flask.render_template('inspect.html', publication_unfolded=publication_unfolded) + # return flask.render_template('inspect.html', publication_unfolded=publication_unfolded) + return "This interface is disabled for now, to not confuse ourselves between versions." @APP.route('/stylesheet/', methods=['GET']) def stylesheet(): - return flask.render_template('stylesheet.html') + # return flask.render_template('stylesheet.html') + return "This interface is disabled for now, to not confuse ourselves between versions." if __name__ == '__main__': APP.debug=True