Automatically exported from code.google.com/p/planningalerts
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

21 行
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