Commit 29e13613 authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

Added about page.

parent 136802da
Mason Go is a product of the George Mason University
<a href="">Student-Run Computing and Technology</a>
organization. Go provides Mason-branded URL shortening for administration,
ULife groups, and student organizations. Access is moderated by SRCT
You can <a href="/signup">sign up</a> for use.
import ldap
import site
import library
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 = open(goconfig.doc_root + "/site_data/about.part", "r")
about_part =
f = open(goconfig.doc_root + "/site_data/bottom.part", "r")
bottom_part =
response = top_part + about_part + bottom_part
status = '200 OK'
response_headers = [('Content-type', 'text/html'),
('Content-Length', str(len(response)))]
start_response(status, response_headers)
return [response]
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