Skip to content
Snippets Groups Projects
Commit c608dd9f authored by Sorrel Harriet's avatar Sorrel Harriet
Browse files

deleting garbage

parent 92df3a12
Branches
No related merge requests found
......@@ -23,20 +23,6 @@ db = utils.db_connect( config )
print("Content-Type: text/html\n")
print( utils.render_template( config['TEMPLATE_DIR'] + 'header.html') )
"""# decide what to do based on page parameter in query string
# FieldStorage also contains data sent in GET in dict format
params = cgi.FieldStorage()
# check if page parameter is set
# NOTE: this is a pretty horrible way to
# implement view switching...consider it
# is for demonstrative purposes only!
if ['page'] in params:
if params['page'] == 'login':
# render login form
print( utils.render_template( config['TEMPLATE_DIR'] + 'login.html') )
else:
# render normal view"""
# render login form. Could use JS to collapse this by default.
print( utils.render_template( config['TEMPLATE_DIR'] + 'login.html') )
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment