Automatically exported from code.google.com/p/planningalerts
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

New Forest.cgi 759 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/local/bin/python
  2. # This is the parser for New Forest National Park.
  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 = "New Forest National Park"
  12. authority_short_name = "New Forest"
  13. base_url = "http://web01.newforestnpa.gov.uk/planningpages/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch"
  14. import AcolnetParser
  15. parser = AcolnetParser.NewForestParser(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