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
b703f052
Commit
b703f052
authored
Nov 08, 2013
by
Jean Michel Rouly
Browse files
Cleaned up about page.
parent
44afb329
Changes
1
Hide whitespace changes
Inline
Side-by-side
wsgi/about.py
View file @
b703f052
...
...
@@ -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'
),
...
...
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