Table of Contents

Module: pubcgi pubcgi.py
Imported modules   
import Cookie
from cPickle import load, dump
from cStringIO import StringIO
import cgi
from md5 import md5
import os
from os import remove
from os.path import isdir, isfile
import pickle
import pub
from pubcore import *
import pubobjs
import random
import string
import sys
import time
Functions   
cleanupsaves
handle_request
  cleanupsaves 
cleanupsaves ( filelist,  maxage=86400 )

Delete saved games beyond a certain age.

  handle_request 
handle_request (
        savedir,
        title='PUB',
        header='',
        midder='',
        footer='',
        updates=3,
        )

Handle the CGI request.

processing ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Exceptions   
"Invalid savedir passed to pubcgi.handle_request"
Classes   

CGIPlayer


Table of Contents

This document was automatically generated on Mon Aug 8 17:04:06 2005 by HappyDoc version 2.1