Automatically exported from code.google.com/p/planningalerts
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

1234567891011121314151617181920
  1. #!/usr/local/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