2005-09-14 17:08:44 +02:00
|
|
|
import sys, traceback,string,time
|
2005-11-24 16:39:22 +01:00
|
|
|
import login,createaccount,helper,gamecreation
|
|
|
|
from cherrypy import cpg
|
|
|
|
|
|
|
|
class WebGoSite:
|
|
|
|
def index(self):
|
|
|
|
data = helper.header()
|
|
|
|
data += """ This is WebGo.<br>
|
|
|
|
<a href="/login">login</a><br>
|
|
|
|
<a href="/createaccount">create an account</a><br>
|
|
|
|
"""
|
|
|
|
data += helper.footer()
|
|
|
|
return data
|
|
|
|
index.exposed = True
|
|
|
|
|
|
|
|
cpg.root = WebGoSite()
|
|
|
|
cpg.root.createaccount = createaccount.CreateAccount()
|
|
|
|
cpg.root.login = login.Login()
|
|
|
|
cpg.root.overview = login.Overview()
|
|
|
|
cpg.root.gamecreation = gamecreation.GameCreation()
|
|
|
|
|
|
|
|
cpg.server.start(configMap={'sessionStorageType' : 'ram',
|
|
|
|
'sessionCookieName' : 'WebGoSessionCookie',
|
|
|
|
'sessionTimeout' : 15, #Session expires in n minutes
|
|
|
|
|
|
|
|
'staticContentList':
|
|
|
|
[['default.css','default.css']]
|
|
|
|
}
|
|
|
|
)
|