-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.py
executable file
·31 lines (27 loc) · 903 Bytes
/
index.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/python
import wsgiref.handlers
import login
import ok
__author__ = 'WS02admin'
import genHTML
def printAlphabetChooser():
return 'a'
def printPage(environ, start_response):
responseCode = ok.code()
string = ''
string += genHTML.genPageHeader('EngCupid')
string += genHTML.genMenuBar("EngCupid", [dict(link='browse.py', name='Browse', active=False)], login.getLoginToken(environ))
string += genHTML.beginContainer()
string += """\
<div class='span12'>
<div class="hero-unit">
<H1>Welcome to Eng Cupid</H1>
<p>The dating site tailor made for Engineers and Computer Scientists</p>
</div>
</div>
"""
string += genHTML.endContainer()
string += genHTML.genPageFooter()
start_response(responseCode, [('Content-type', 'text/html')])
return string
wsgiref.handlers.CGIHandler().run(printPage)