Automatically exported from code.google.com/p/planningalerts
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

Hammersmith and Fulham.cgi 833 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/local/bin/python
  2. # This is the parser for London Borough Of Hammersmith and Fulham.
  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 = "London Borough Of Hammersmith and Fulham"
  12. authority_short_name = "Hammersmith and Fulham"
  13. base_url = "http://www.apps.lbhf.gov.uk/PublicAccess/tdc/"
  14. import PublicAccess
  15. parser = PublicAccess.PublicAccessParser(authority_name,
  16. authority_short_name,
  17. 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