Automatically exported from code.google.com/p/planningalerts
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

Suffolk Coastal.cgi 855 B

hace 17 años
hace 17 años
123456789101112131415161718192021222324252627282930313233
  1. #!/usr/local/bin/python
  2. # This is the parser for Suffolk Coastal District 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 = "Suffolk Coastal District Council"
  12. authority_short_name = "Suffolk Coastal"
  13. base_url = "https://apps3.suffolkcoastal.gov.uk/planningonline/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch"
  14. #print "Content-Type: text/html" # HTML is following
  15. #print
  16. import AcolnetParser
  17. parser = AcolnetParser.SuffolkCoastalParser(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