Automatically exported from code.google.com/p/planningalerts
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 
 

30 Zeilen
699 B

  1. #!/usr/local/bin/python
  2. # This is the parser for Oswestry Borough Council.
  3. # it is generated from the file CGITemplate
  4. import cgi
  5. import cgitb
  6. #cgitb.enable(display=0, logdir="/tmp")
  7. form = cgi.FieldStorage()
  8. day = form.getfirst('day')
  9. month = form.getfirst('month')
  10. year = form.getfirst('year')
  11. authority_name = "Oswestry Borough Council"
  12. authority_short_name = "Oswestry"
  13. base_url = "http://193.114.205.78/PublicAccess/tdc/"
  14. import PublicAccess
  15. parser = PublicAccess.PublicAccessParser(authority_name, authority_short_name, base_url)
  16. xml = parser.getResults(day, month, year)
  17. print "Content-Type: text/xml" # XML is following
  18. print
  19. print xml # print the xml