diff --git a/BUGS.md b/BUGS.md index d18203b..16ae5c4 100644 --- a/BUGS.md +++ b/BUGS.md @@ -1,12 +1,12 @@ # BUGS +- config/logger.yaml ainda é do cherrypy... +- servir imagens das perguntas +- hints nao funciona - fazer renderer para formulas com mathjax serverside (mathjax-node). - fazer renderer para imagens, com links /file?ref=xpto;name=zzz.jpg - fazer renderer para linguagem assembly mips? -- servir imagens das perguntas -- hints nao funciona -- uniformizar question.py com a de aprendizations... - permitir eliminar teste a decorrer - eventos unfocus? - servidor nao esta a lidar com eventos scroll/resize. ignorar? @@ -39,6 +39,7 @@ # FIXED +- uniformizar question.py com a de aprendizations... - qual a diferenca entre md_to_html e md_to_html_review, parece desnecessario haver dois. - converter markdown para mistune. - como alterar configuracao para mostrar logs de debug? diff --git a/serve.py b/serve.py index 5b6a95f..7759ad7 100755 --- a/serve.py +++ b/serve.py @@ -321,10 +321,10 @@ class AdminHandler(BaseHandler): def main(): # --- Commandline argument parsing argparser = argparse.ArgumentParser(description='Server for online tests. Enrolled students and tests have to be previously configured. Please read the documentation included with this software before running the server.') - argparser.add_argument('--debug', action='store_true', - help='Show datastructures when rendering questions') - argparser.add_argument('--allow-all', action='store_true', help='Students are initially allowed to login (can be denied later)') argparser.add_argument('testfile', type=str, nargs='+', help='test/exam in YAML format.') # FIXME only one exam supported at the moment + argparser.add_argument('--allow-all', action='store_true', help='Students are initially allowed to login (can be denied later)') + argparser.add_argument('--debug', action='store_true', + help='Enable debug messages.') arg = argparser.parse_args() # --- Setup logging @@ -347,14 +347,14 @@ def main(): } try: - app = App(config) + testapp = App(config) except AppException: logging.critical('Failed to start application.') sys.exit(1) # --- create web application try: - webapp = WebApplication(app, debug=arg.debug) + webapp = WebApplication(testapp, debug=arg.debug) except Exception as e: logging.critical('Can\'t start application.') raise e diff --git a/templates/admin.html b/templates/admin.html index 1b0d4e5..e2a4c6a 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -22,7 +22,7 @@
-