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.

CGITemplate 639 B

123456789101112131415161718192021222324252627
  1. # This is the parser for %(authority_name)s.
  2. # it is generated from the file CGITemplate
  3. import cgi
  4. import cgitb
  5. #cgitb.enable(display=0, logdir="/tmp")
  6. form = cgi.FieldStorage()
  7. day = form.getfirst('day')
  8. month = form.getfirst('month')
  9. year = form.getfirst('year')
  10. authority_name = "%(authority_name)s"
  11. authority_short_name = "%(authority_short_name)s"
  12. base_url = "%(base_url)s"
  13. import %(module)s
  14. parser = %(module)s.%(parser)s(authority_name, authority_short_name, base_url)
  15. xml = parser.getResults(day, month, year)
  16. print "Content-Type: text/xml" # XML is following
  17. print
  18. print xml # print the xml