Automatically exported from code.google.com/p/planningalerts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 regels
447 B

  1. #!/usr/bin/python
  2. import cgi
  3. import cgitb; cgitb.enable(display=0, logdir="/tmp")
  4. form = cgi.FieldStorage()
  5. day = form.getfirst('day')
  6. month = form.getfirst('month')
  7. year = form.getfirst('year')
  8. from SouthOxfordshireParser import SouthOxfordshireParser
  9. parser = SouthOxfordshireParser()
  10. xml = parser.getResults(day, month, year)
  11. print "Content-Type: text/xml" # XML is following
  12. print
  13. print xml # print the xml