Browse Source

disabling the web interfaces, to not get confused between versions

master
manetta 2 years ago
parent
commit
adc96c38ab
  1. 24
      web-interface/web-interface.py

24
web-interface/web-interface.py

@ -44,28 +44,32 @@ def notes():
@APP.route('/update/', methods=['GET', 'POST']) @APP.route('/update/', methods=['GET', 'POST'])
def update(): def update():
publication_unfolded = update_material_now(PAGENAME, WIKI) # download the latest version of the page # publication_unfolded = update_material_now(PAGENAME, WIKI) # download the latest version of the page
save(publication_unfolded, 'Unfolded') # save the html to file (without <head>) to file # save(publication_unfolded, 'Unfolded') # save the html to file (without <head>) 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']) @APP.route('/pagedjs/', methods=['GET', 'POST'])
def pagedjs(): def pagedjs():
download_stylesheet() # download the stylesheet pad # download_stylesheet() # download the stylesheet pad
publication_unfolded = open(f'{ DIR_PATH }/static/Unfolded.html', 'r').read() # 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']) @APP.route('/inspect/', methods=['GET', 'POST'])
def inspect(): def inspect():
download_stylesheet() # download the stylesheet pad # download_stylesheet() # download the stylesheet pad
publication_unfolded = open(f'{ DIR_PATH }/static/Unfolded.html', 'r').read() # 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']) @APP.route('/stylesheet/', methods=['GET'])
def stylesheet(): 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__': if __name__ == '__main__':
APP.debug=True APP.debug=True

Loading…
Cancel
Save