import sys, traceback,string,time
import login,createaccount,helper,gamecreation,playgame
from cherrypy import cpg
class WebGoSite:
def index(self):
data = helper.header()
data += """ This is WebGo.
login
create an account
"""
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.root.playgame = playgame.PlayGame()
cpg.server.start(configMap={'sessionStorageType' : 'ram',
'sessionCookieName' : 'WebGoSessionCookie',
'sessionTimeout' : 15, #Session expires in n minutes
'staticContentList':
[['default.css','default.css'],
['img','img']]
}
)