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
065e6682
Commit
065e6682
authored
Nov 09, 2013
by
Jean Michel Rouly
Browse files
Introduced file.
parent
beb01d80
Changes
1
Hide whitespace changes
Inline
Side-by-side
wsgi/mylinks.py
0 → 100644
View file @
065e6682
import
ldap
import
site
site
.
addsitedir
(
'/srv/http/go/wsgi'
)
import
library
import
goconfig
def
application
(
environ
,
start_response
):
user_logged_in
=
library
.
user_logged_in
(
environ
)
top
=
library
.
get_top
(
user_logged_in
)
bottom
=
library
.
get_bottom
(
user_logged_in
)
body
=
"<p>Nothing here.</p>"
response
=
top
+
body
+
bottom
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