Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
29e13613
Commit
29e13613
authored
Oct 30, 2013
by
Jean Michel Rouly
Browse files
Added about page.
parent
136802da
Changes
2
Hide whitespace changes
Inline
Side-by-side
site_data/about.part
0 → 100644
View file @
29e13613
<h3>~About~</h3>
<p>
Mason Go is a product of the George Mason University
<a href="http://srct.gmu.edu">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
administrators.
</p>
<p>
You can <a href="/signup">sign up</a> for use.
<br/><br/>
</p>
wsgi/about.py
0 → 100644
View file @
29e13613
import
ldap
import
site
site
.
addsitedir
(
'/srv/http/go/wsgi'
)
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
.
read
()
f
.
close
()
f
=
open
(
goconfig
.
doc_root
+
"/site_data/about.part"
,
"r"
)
about_part
=
f
.
read
()
f
.
close
()
f
=
open
(
goconfig
.
doc_root
+
"/site_data/bottom.part"
,
"r"
)
bottom_part
=
f
.
read
()
f
.
close
()
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
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment