small changes here and there. a debug function (SPOT), css, start of a navigation bar.

This commit is contained in:
phear 2005-09-20 07:05:05 +00:00
parent 8f5568bcd0
commit a901d5f237
35 changed files with 511 additions and 71 deletions

View file

@ -1,6 +1,8 @@
import goban,helper,psql
import goban,helper,psql,login
import string
DEBUG = 1
def is_my_turn(req,form,gobandict):
"""
gets request and util.FiedStorage form.
@ -74,11 +76,12 @@ def main(req,form):
if is_my_turn(req,form,gobandict):
data += ("Its your turn.<br>")
else:
data+= ("This is not your turn. Look, but don't touch ;)<br>")
data+= ("This is not your turn. You have to wait for the move of the other player.<br>")
#print goban
data += goban.display_goban(gobandict,req,form)
data += login.navigation_bar(form["username"],form["sessionid"])
data += helper.footer()
req.write(data)