diff options
-rw-r--r-- | wqflask/runserver.py | 17 | ||||
-rw-r--r-- | wqflask/wqflask/search_results.py | 12 |
2 files changed, 20 insertions, 9 deletions
diff --git a/wqflask/runserver.py b/wqflask/runserver.py index a61e4029..2a75faeb 100644 --- a/wqflask/runserver.py +++ b/wqflask/runserver.py @@ -11,12 +11,21 @@ from wqflask import app # # For more info see: http://www.cyberciti.biz/faq/iptables-block-port/ +#import logging +#logging.basicConfig(filename="/tmp/flask_gn_log", level=logging.INFO) +# +#_log = logging.getLogger("search") +#_ch = logging.StreamHandler() +#_log.addHandler(_ch) + import logging -logging.basicConfig(filename="/tmp/flask_gn_log", level=logging.INFO) +#from themodule import TheHandlerYouWant +file_handler = logging.FileHandler("/tmp/flask_gn_log") +file_handler.setLevel(logging.DEBUG) +app.logger.addHandler(file_handler) -_log = logging.getLogger("search") -_ch = logging.StreamHandler() -_log.addHandler(_ch) +import logging_tree +logging_tree.printout() app.run(host='0.0.0.0', use_debugger=False, diff --git a/wqflask/wqflask/search_results.py b/wqflask/wqflask/search_results.py index d44fbcef..1b846771 100644 --- a/wqflask/wqflask/search_results.py +++ b/wqflask/wqflask/search_results.py @@ -68,11 +68,13 @@ class SearchResultPage(templatePage): print("ge0") #return - print("ge0.5") - #causeerror - print("type of fd:", type(fd)) - self.database = [fd['database']] - print("ge0.55") + print("Start...") + print("Type of fd:", type(fd)) + print("Value of fd:", pf(fd)) + database = [fd['database']] + print("End...") + + # change back to self.database if not self.database or self.database == 'spacer': #Error, No database selected heading = "Search Result" |