import psql,login def delete_game(gamename,username): """ get name of game and name of user. remove game from game slot of user. """ def get_game_slot_of_game(player, gamename): """ gets playername and game name, searches through the game slots and returns the game slot used by the game. """ slotlist = psql.get_user_game_list(player) ret = "" for i in range(0,len(slotlist)): if slotlist[i] == gamename: ret = "game" + str(i+1) return ret def main(req,form): """ get the name of a game,request,util.FieldStorage. manage the removal of game from game slots of players and delete game from database. """ req.write(str(form.keys())+" sessionid in form:"+form["sessionid"]+"