Automatically exported from code.google.com/p/planningalerts
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

21 lignes
453 B

  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