#! /usr/bin/env python
_VERSION = "$Id: update.py 1212 2011-01-19 13:43:26Z darcy $"
_MODDATE = "$Date: 2011-01-19 08:43:26 -0500 (Wed, 19 Jan 2011) $"[7:-2]
import sys, pg, os, string
from DB_ride import *
db = DB_ride()
#db.debug = "
%s
"
print """content-type: text/html
IMPORTANT: In the spam check box you should add the number seventeen to the ride ID. This is to help us block spamming robots.""" try: ride = db.get('ride', sys.argv[1]) except pg.DatabaseError, value: print "
No ride number found: %s" % sys.argv[1] else: for k in ride.keys(): if ride[k] == None and k[0] != '_': ride[k] = "" print """