2005-09-14 17:08:44 +02:00
|
|
|
import sys, traceback,string,time
|
2005-11-24 19:31:33 +01:00
|
|
|
import login,createaccount,helper,gamecreation,playgame
|
2005-11-24 16:39:22 +01:00
|
|
|
from cherrypy import cpg
|
|
|
|
|
2005-12-11 20:00:50 +01:00
|
|
|
#clearsilver templates
|
|
|
|
import neo_cgi
|
|
|
|
import neo_util # you must import neo_cgi first...
|
|
|
|
import neo_cs # you must import neo_cgi first...
|
|
|
|
|
|
|
|
|
2005-11-24 16:39:22 +01:00
|
|
|
class WebGoSite:
|
|
|
|
def index(self):
|
2005-12-11 20:56:02 +01:00
|
|
|
return helper.cs_render("templates/main.cs")
|
2005-12-11 20:00:50 +01:00
|
|
|
|
2005-11-24 16:39:22 +01:00
|
|
|
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()
|
2005-11-24 19:31:33 +01:00
|
|
|
cpg.root.playgame = playgame.PlayGame()
|
2005-11-24 16:39:22 +01:00
|
|
|
|
|
|
|
cpg.server.start(configMap={'sessionStorageType' : 'ram',
|
|
|
|
'sessionCookieName' : 'WebGoSessionCookie',
|
|
|
|
'sessionTimeout' : 15, #Session expires in n minutes
|
|
|
|
|
|
|
|
'staticContentList':
|
2005-11-24 19:31:33 +01:00
|
|
|
[['default.css','default.css'],
|
|
|
|
['img','img']]
|
2005-11-24 16:39:22 +01:00
|
|
|
}
|
|
|
|
)
|