| @@ -0,0 +1,31 @@ | |||||
| #!/usr/bin/python | |||||
| # This is the parser for Doncaster Metropolitan Borough Council. | |||||
| # it is generated from the file CGITemplate | |||||
| import cgi | |||||
| import cgitb | |||||
| #cgitb.enable(display=0, logdir="/tmp") | |||||
| form = cgi.FieldStorage() | |||||
| day = form.getfirst('day') | |||||
| month = form.getfirst('month') | |||||
| year = form.getfirst('year') | |||||
| authority_name = "Doncaster Metropolitan Borough Council" | |||||
| authority_short_name = "Doncaster" | |||||
| base_url = "http://maps.doncaster.gov.uk/publicaccess/tdc/" | |||||
| import PublicAccess | |||||
| parser = PublicAccess.PublicAccessParser(authority_name, | |||||
| authority_short_name, | |||||
| base_url) | |||||
| xml = parser.getResults(day, month, year) | |||||
| print "Content-Type: text/xml" # XML is following | |||||
| print xml # print the xml | |||||
| @@ -350,6 +350,15 @@ class PublicAccessPropertyPageParser(HTMLParser.HTMLParser): | |||||
| #http://planning.hambleton.gov.uk/publicaccess/tdc/DcApplication/application_searchform.aspx | #http://planning.hambleton.gov.uk/publicaccess/tdc/DcApplication/application_searchform.aspx | ||||
| #"Hambleton District Council", "Hambleton", "http://planning.hambleton.gov.uk/publicaccess/tdc/" | #"Hambleton District Council", "Hambleton", "http://planning.hambleton.gov.uk/publicaccess/tdc/" | ||||
| # Bromley | |||||
| # http://83.244.199.114/publicaccess/ | |||||
| # looks like it might be a PublicAccess site, but limits users to IE. | |||||
| # Not fooled by setting the browser identifer in konqueror... | |||||
| # West Berkshire | |||||
| #http://ww2.westberks.gov.uk/publicaccess/tdc/tdc_home.aspx | |||||
| # Displays an error message. | |||||
| # These use https: | # These use https: | ||||
| # Chiltern | # Chiltern | ||||
| @@ -0,0 +1,31 @@ | |||||
| #!/usr/bin/python | |||||
| # This is the parser for Waveney District Council. | |||||
| # it is generated from the file CGITemplate | |||||
| import cgi | |||||
| import cgitb | |||||
| #cgitb.enable(display=0, logdir="/tmp") | |||||
| form = cgi.FieldStorage() | |||||
| day = form.getfirst('day') | |||||
| month = form.getfirst('month') | |||||
| year = form.getfirst('year') | |||||
| authority_name = "Waveney District Council" | |||||
| authority_short_name = "Waveney" | |||||
| base_url = "http://publicaccess.waveney.gov.uk/PublicAccess/tdc/" | |||||
| import PublicAccess | |||||
| parser = PublicAccess.PublicAccessParser(authority_name, | |||||
| authority_short_name, | |||||
| base_url) | |||||
| xml = parser.getResults(day, month, year) | |||||
| print "Content-Type: text/xml" # XML is following | |||||
| print xml # print the xml | |||||
| @@ -350,6 +350,15 @@ class PublicAccessPropertyPageParser(HTMLParser.HTMLParser): | |||||
| #http://planning.hambleton.gov.uk/publicaccess/tdc/DcApplication/application_searchform.aspx | #http://planning.hambleton.gov.uk/publicaccess/tdc/DcApplication/application_searchform.aspx | ||||
| #"Hambleton District Council", "Hambleton", "http://planning.hambleton.gov.uk/publicaccess/tdc/" | #"Hambleton District Council", "Hambleton", "http://planning.hambleton.gov.uk/publicaccess/tdc/" | ||||
| # Bromley | |||||
| # http://83.244.199.114/publicaccess/ | |||||
| # looks like it might be a PublicAccess site, but limits users to IE. | |||||
| # Not fooled by setting the browser identifer in konqueror... | |||||
| # West Berkshire | |||||
| #http://ww2.westberks.gov.uk/publicaccess/tdc/tdc_home.aspx | |||||
| # Displays an error message. | |||||
| # These use https: | # These use https: | ||||
| # Chiltern | # Chiltern | ||||
| @@ -34,5 +34,5 @@ | |||||
| "Kerrier District Council", "Kerrier", "http://publicaccess.kerrier.gov.uk/publicaccess/tdc/" | "Kerrier District Council", "Kerrier", "http://publicaccess.kerrier.gov.uk/publicaccess/tdc/" | ||||
| "Oswestry Borough Council", "Oswestry", "http://193.114.205.78/PublicAccess/tdc/" | "Oswestry Borough Council", "Oswestry", "http://193.114.205.78/PublicAccess/tdc/" | ||||
| "Stockton-On-Tees Borough Council", "Stockton-On-Tees", "http://www.developmentcontrol.stockton.gov.uk/publicaccess/tdc/" | "Stockton-On-Tees Borough Council", "Stockton-On-Tees", "http://www.developmentcontrol.stockton.gov.uk/publicaccess/tdc/" | ||||
| "Doncaster Metropolitan Borough Council", "Doncaster", "http://maps.doncaster.gov.uk/publicaccess/tdc/" | |||||
| "Waveney District Council", "Waveney", "http://publicaccess.waveney.gov.uk/PublicAccess/tdc/" | |||||
| @@ -8,7 +8,7 @@ python generateCGIScripts.py | |||||
| svn add ../CGI/* | svn add ../CGI/* | ||||
| echo Committing changes to svn | |||||
| (cd ../CGI ; svn commit -m "Removing and regenerating CGI directory") | |||||
| #echo Committing changes to svn | |||||
| #(cd ../CGI ; svn commit -m "Removing and regenerating CGI directory") | |||||
| echo Done | echo Done | ||||