diff --git a/BUGS.md b/BUGS.md index 6b26205..578c7a5 100644 --- a/BUGS.md +++ b/BUGS.md @@ -1,6 +1,7 @@ BUGS: +- servidor http com redirect para https. - servir imagens/ficheiros. - topicos virtuais nao deveriam aparecer. na construção da árvore os sucessores seriam ligados directamente aos predecessores. diff --git a/config/logger-debug.yaml b/config/logger-debug.yaml index fc2a088..0802cbb 100644 --- a/config/logger-debug.yaml +++ b/config/logger-debug.yaml @@ -19,22 +19,22 @@ loggers: handlers: ['default'] level: 'DEBUG' - 'app': + 'factory': handlers: ['default'] level: 'DEBUG' propagate: False - 'learnapp': + 'knowledge': handlers: ['default'] level: 'DEBUG' propagate: False - 'questions': + 'learnapp': handlers: ['default'] level: 'DEBUG' propagate: False - 'questionfactory': + 'questions': handlers: ['default'] level: 'DEBUG' propagate: False @@ -43,14 +43,3 @@ loggers: handlers: ['default'] level: 'DEBUG' propagate: False - - 'knowledge': - handlers: ['default'] - level: 'DEBUG' - propagate: False - - # 'root': - # handlers: ['default'] - # level: 'DEBUG' - # propagate: False - # \ No newline at end of file diff --git a/serve.py b/serve.py index c680130..8e37de2 100755 --- a/serve.py +++ b/serve.py @@ -3,19 +3,16 @@ # python standard library from os import path import sys -import json import base64 import uuid -import concurrent.futures import logging.config import argparse # user installed libraries -import markdown import tornado.ioloop import tornado.web import tornado.httpserver -from tornado import template, gen +from tornado import template #, gen # this project from learnapp import LearnApp @@ -34,7 +31,7 @@ class WebApplication(tornado.web.Application): (r'/question', QuestionHandler), # each question (r'/topic/(.+)', TopicHandler), # page for doing a topic (r'/', RootHandler), # show list of topics - # (r'/file/(.+)', FileHandler), + # (r'/file/(.+)', FileHandler), # FIXME ] settings = { 'template_path': path.join(path.dirname(__file__), 'templates'), @@ -199,9 +196,8 @@ class QuestionHandler(BaseHandler): def finished_topic(self, user): # FIXME user unused return { 'method': 'finished_topic', - 'params': { - 'question': f'trophy', - # 'progress': 1.0, + 'params': { # FIXME no html here please! + 'question': f'trophy' } } diff --git a/templates/login.html b/templates/login.html index 1eab711..6d9c1f6 100644 --- a/templates/login.html +++ b/templates/login.html @@ -1,7 +1,7 @@ - GotIT + iLearn diff --git a/templates/maintopics.html b/templates/maintopics.html index f88e862..db0a8fd 100644 --- a/templates/maintopics.html +++ b/templates/maintopics.html @@ -3,7 +3,7 @@ - DoIT + iLearn diff --git a/templates/question.html b/templates/question.html index d22d27b..0f8ed52 100644 --- a/templates/question.html +++ b/templates/question.html @@ -1,6 +1,6 @@ {% autoescape %} -

{{ question['title'] }}

+
{{ md(question['text']) }} diff --git a/templates/topic.html b/templates/topic.html index 5ab0d33..5c626d3 100644 --- a/templates/topic.html +++ b/templates/topic.html @@ -1,7 +1,7 @@ - GotIT + iLearn -- libgit2 0.21.2