Automatically exported from code.google.com/p/planningalerts
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

34 linhas
830 B

  1. #!/usr/local/bin/python
  2. # This is the parser for North Warwickshire 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 = "North Warwickshire Borough Council"
  12. authority_short_name = "North Warwickshire"
  13. base_url = "http://planning.northwarks.gov.uk/"
  14. #print "Content-Type: text/html" # HTML is following
  15. #print
  16. import ApplicationSearchServletParser
  17. parser = ApplicationSearchServletParser.NorthWarksSearchParser(authority_name, authority_short_name, base_url)
  18. xml = parser.getResults(day, month, year)
  19. print "Content-Type: text/xml" # XML is following
  20. print
  21. print xml # print the xml