2012-08-19 21:29:06 -07:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
# CGI script creating page of recent games
|
|
|
|
|
|
|
|
|
|
import sys
|
|
|
|
|
import time
|
2012-09-17 13:41:10 -07:00
|
|
|
import rlgalldb as rlgall
|
2012-08-19 21:29:06 -07:00
|
|
|
|
|
|
|
|
# The required header
|
|
|
|
|
sys.stdout.write("Content-type: text/html\r\n\r\n")
|
|
|
|
|
# The top of the page
|
|
|
|
|
sys.stdout.write(rlgall.phead.format("Recent Games"))
|
|
|
|
|
sys.stdout.write(rlgall.ptop);
|
|
|
|
|
sys.stdout.write(rlgall.navtop.format("Recent"));
|
|
|
|
|
sys.stdout.write(rlgall.pti.format("Recent Expeditions"))
|
|
|
|
|
|
|
|
|
|
for game in rlgall.gamelist:
|
|
|
|
|
game.tablerecent(sys.stdout)
|
|
|
|
|
|
|
|
|
|
sys.stdout.write(rlgall.pend)
|
|
|
|
|
exit()
|