Commit b703f052 authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

Cleaned up about page.

parent 44afb329
......@@ -7,34 +7,19 @@ import goconfig
def application(environ, start_response):
## This application should display two the user one of two
## screens, depending on the situation.
##
## Given an unverified user, display the login screen.
## On login, authenticate the user's credentials. If the credentials
## are good, then consider the user logged in.
##
## Given a logged in user, display the URL register screen. On
## submission, transfer control to the url-register script and
## allow it to verify submission content. If the url-register script
## sends the user back here, the user should remain logged in and
## have no issues travelling back and forth.
# Construct the default body, along with its header/footer wrapper.
body = []
f = open(goconfig.doc_root + "/site_data/top.part", "r")
top_part = f.read()
top = f.read()
f.close()
f = open(goconfig.doc_root + "/site_data/about.part", "r")
about_part = f.read()
about = f.read()
f.close()
f = open(goconfig.doc_root + "/site_data/bottom.part", "r")
bottom_part = f.read()
bottom = f.read()
f.close()
response = top_part + about_part + bottom_part
response = top + about + bottom
status = '200 OK'
response_headers = [('Content-type', 'text/html'),
......
Markdown is supported
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