Browse Source

Adding new cgi files

master
duncan.parkes 17 years ago
parent
commit
ad0949b719
32 changed files with 141 additions and 31 deletions
  1. +1
    -1
      CGI/Angus.cgi
  2. +1
    -1
      CGI/Basildon.cgi
  3. +1
    -1
      CGI/Bath.cgi
  4. +1
    -1
      CGI/Bexley.cgi
  5. +1
    -1
      CGI/Blaby.cgi
  6. +1
    -1
      CGI/Bristol.cgi
  7. +1
    -1
      CGI/Buckinghamshire.cgi
  8. +1
    -1
      CGI/Cherwell.cgi
  9. +1
    -1
      CGI/East Devon.cgi
  10. +31
    -0
      CGI/Edinburgh.cgi
  11. +31
    -0
      CGI/Fenland.cgi
  12. +1
    -1
      CGI/Hart.cgi
  13. +1
    -1
      CGI/Huntingdonshire.cgi
  14. +1
    -1
      CGI/Lancaster.cgi
  15. +1
    -1
      CGI/Luton.cgi
  16. +1
    -1
      CGI/Mid Devon.cgi
  17. +1
    -1
      CGI/Oadby and Wigston.cgi
  18. +1
    -1
      CGI/Portsmouth.cgi
  19. +20
    -3
      CGI/PublicAccess.py
  20. +1
    -1
      CGI/Rushmoor.cgi
  21. +31
    -0
      CGI/Scarborough.cgi
  22. +1
    -1
      CGI/Sevenoaks.cgi
  23. +1
    -1
      CGI/South Staffs.cgi
  24. +1
    -1
      CGI/Southampton.cgi
  25. +1
    -1
      CGI/Spelthorne.cgi
  26. +1
    -1
      CGI/Stevenage.cgi
  27. +1
    -1
      CGI/Sunderland.cgi
  28. +1
    -1
      CGI/Test Valley.cgi
  29. +1
    -1
      CGI/Tonbridge.cgi
  30. +1
    -1
      CGI/West Norfolk.cgi
  31. +1
    -1
      CGI/Woking.cgi
  32. +1
    -1
      CGI/York.cgi

+ 1
- 1
CGI/Angus.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "Angus Council"
authority_short_name = "Angus"
base_url = "http://planning.angus.gov.uk/PublicAccess/"
base_url = "http://planning.angus.gov.uk/PublicAccess/tdc/"

import PublicAccess



+ 1
- 1
CGI/Basildon.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "Basildon District Council"
authority_short_name = "Basildon"
base_url = "http://planning.basildon.gov.uk/publicaccess/"
base_url = "http://planning.basildon.gov.uk/publicaccess/tdc/"

import PublicAccess



+ 1
- 1
CGI/Bath.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "Bath and North East Somerset"
authority_short_name = "Bath"
base_url = "http://planning.bathnes.gov.uk/publicaccess/"
base_url = "http://planning.bathnes.gov.uk/publicaccess/tdc/"

import PublicAccess



+ 1
- 1
CGI/Bexley.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "Bexley Council"
authority_short_name = "Bexley"
base_url = "http://publicaccess.bexley.gov.uk/publicaccess/"
base_url = "http://publicaccess.bexley.gov.uk/publicaccess/tdc/"

import PublicAccess



+ 1
- 1
CGI/Blaby.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "Blaby District Council"
authority_short_name = "Blaby"
base_url = "http://www.blaby.gov.uk/PublicAccess/"
base_url = "http://www.blaby.gov.uk/PublicAccess/tdc/"

import PublicAccess



+ 1
- 1
CGI/Bristol.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "Bristol City Council"
authority_short_name = "Bristol"
base_url = "http://e2eweb.bristol-city.gov.uk/publicaccess/"
base_url = "http://e2eweb.bristol-city.gov.uk/publicaccess/tdc/"

import PublicAccess



+ 1
- 1
CGI/Buckinghamshire.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "Buckinghamshire County Council"
authority_short_name = "Buckinghamshire"
base_url = "http://www.bucksplanning.gov.uk/PublicAccess/"
base_url = "http://www.bucksplanning.gov.uk/PublicAccess/tdc/"

import PublicAccess



+ 1
- 1
CGI/Cherwell.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "Cherwell District Council"
authority_short_name = "Cherwell"
base_url = "http://cherweb.cherwell-dc.gov.uk/publicaccess/"
base_url = "http://cherweb.cherwell-dc.gov.uk/publicaccess/tdc/"

import PublicAccess



+ 1
- 1
CGI/East Devon.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "East Devon District Council"
authority_short_name = "East Devon"
base_url = "http://planning.eastdevon.gov.uk/PublicAccess/"
base_url = "http://planning.eastdevon.gov.uk/PublicAccess/tdc/"

import PublicAccess



+ 31
- 0
CGI/Edinburgh.cgi View File

@@ -0,0 +1,31 @@
#!/usr/bin/python

# This is the parser for The City of Edinburgh 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 = "The City of Edinburgh Council"
authority_short_name = "Edinburgh"
base_url = "http://citydev-portal.edinburgh.gov.uk/publicaccess/dc/"

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
print xml # print the xml

+ 31
- 0
CGI/Fenland.cgi View File

@@ -0,0 +1,31 @@
#!/usr/bin/python

# This is the parser for Fenland 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 = "Fenland District Council"
authority_short_name = "Fenland"
base_url = "http://www.fenland.gov.uk/publicaccess/dc/"

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
print xml # print the xml

+ 1
- 1
CGI/Hart.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "Hart District Council"
authority_short_name = "Hart"
base_url = "http://publicaccess.hart.gov.uk/publicaccess/"
base_url = "http://publicaccess.hart.gov.uk/publicaccess/tdc/"

import PublicAccess



+ 1
- 1
CGI/Huntingdonshire.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "Huntingdonshire District Council"
authority_short_name = "Huntingdonshire"
base_url = "http://planning.huntsdc.gov.uk/publicaccess/"
base_url = "http://planning.huntsdc.gov.uk/publicaccess/tdc/"

import PublicAccess



+ 1
- 1
CGI/Lancaster.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "Lancaster City Council"
authority_short_name = "Lancaster"
base_url = "http://planapps.lancaster.gov.uk/PublicAccess/"
base_url = "http://planapps.lancaster.gov.uk/PublicAccess/tdc/"

import PublicAccess



+ 1
- 1
CGI/Luton.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "Luton Borough Council"
authority_short_name = "Luton"
base_url = "http://www.eplan.luton.gov.uk/PublicAccess/"
base_url = "http://www.eplan.luton.gov.uk/PublicAccess/tdc/"

import PublicAccess



+ 1
- 1
CGI/Mid Devon.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "Mid Devon District Council"
authority_short_name = "Mid Devon"
base_url = "http://planning.middevon.gov.uk/publicaccess/"
base_url = "http://planning.middevon.gov.uk/publicaccess/tdc/"

import PublicAccess



+ 1
- 1
CGI/Oadby and Wigston.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "The Borough of Oadby and Wigston"
authority_short_name = "Oadby and Wigston"
base_url = "http://web.owbc.net/PublicAccess/"
base_url = "http://web.owbc.net/PublicAccess/tdc/"

import PublicAccess



+ 1
- 1
CGI/Portsmouth.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "Portsmouth City Council"
authority_short_name = "Portsmouth"
base_url = "http://planning.portsmouth.gov.uk/PublicAccess/"
base_url = "http://planning.portsmouth.gov.uk/PublicAccess/tdc/"

import PublicAccess



+ 20
- 3
CGI/PublicAccess.py View File

@@ -13,9 +13,9 @@ cookie_jar = cookielib.CookieJar()
from PlanningUtils import fixNewlines, PlanningAuthorityResults, PlanningApplication


search_form_url_end = "tdc/DcApplication/application_searchform.aspx"
search_results_url_end = "tdc/DcApplication/application_searchresults.aspx"
comments_url_end = "tdc/DcApplication/application_comments_entryform.aspx"
search_form_url_end = "DcApplication/application_searchform.aspx"
search_results_url_end = "DcApplication/application_searchresults.aspx"
comments_url_end = "DcApplication/application_comments_entryform.aspx"

class PublicAccessParser(HTMLParser.HTMLParser):
"""This is the class which parses the PublicAccess search results page.
@@ -339,3 +339,20 @@ class PublicAccessPropertyPageParser(HTMLParser.HTMLParser):
if attr == "value":
self.postcode = value


# These still don't work:

# Perthshire
#http://193.63.61.22/publicaccess/tdc/DcApplication/application_searchform.aspx
#"Perth and Kinross Council", "Perthshire", "http://193.63.61.22/publicaccess/tdc/"

# Hambleton
#http://planning.hambleton.gov.uk/publicaccess/tdc/DcApplication/application_searchform.aspx
#"Hambleton District Council", "Hambleton", "http://planning.hambleton.gov.uk/publicaccess/tdc/"

# These use https:

# Chiltern
#https://isa.chiltern.gov.uk/publicaccess/tdc/tdc_home.aspx
# Hinckley-Bosworth
#https://cx.hinckley-bosworth.gov.uk/PublicAccess/dc/DcApplication/application_searchform.aspx

+ 1
- 1
CGI/Rushmoor.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "Rushmoor Borough Council"
authority_short_name = "Rushmoor"
base_url = "http://pa-dc.rushmoor.gov.uk/publicaccess/"
base_url = "http://pa-dc.rushmoor.gov.uk/publicaccess/tdc/"

import PublicAccess



+ 31
- 0
CGI/Scarborough.cgi View File

@@ -0,0 +1,31 @@
#!/usr/bin/python

# This is the parser for Scarborough 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 = "Scarborough Borough Council"
authority_short_name = "Scarborough"
base_url = "http://planning.scarborough.gov.uk/publicaccess/dc/"

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
print xml # print the xml

+ 1
- 1
CGI/Sevenoaks.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "Sevenoaks District Council"
authority_short_name = "Sevenoaks"
base_url = "http://publicaccess.sevenoaks.gov.uk/publicaccess/"
base_url = "http://publicaccess.sevenoaks.gov.uk/publicaccess/tdc/"

import PublicAccess



+ 1
- 1
CGI/South Staffs.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "South Staffordshire Council"
authority_short_name = "South Staffs"
base_url = "https://services.sstaffs.gov.uk/PublicAccess/"
base_url = "https://services.sstaffs.gov.uk/PublicAccess/tdc/"

import PublicAccess



+ 1
- 1
CGI/Southampton.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "Southampton City Council"
authority_short_name = "Southampton"
base_url = "http://publicaccess.southampton.gov.uk/publicaccess/"
base_url = "http://publicaccess.southampton.gov.uk/publicaccess/tdc/"

import PublicAccess



+ 1
- 1
CGI/Spelthorne.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "Spelthorne Borough Council"
authority_short_name = "Spelthorne"
base_url = "http://phoenix.spelthorne.gov.uk/PublicAccess/"
base_url = "http://phoenix.spelthorne.gov.uk/PublicAccess/tdc/"

import PublicAccess



+ 1
- 1
CGI/Stevenage.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "Stevenage Borough Council"
authority_short_name = "Stevenage"
base_url = "http://publicaccess.stevenage.gov.uk/publicaccess/"
base_url = "http://publicaccess.stevenage.gov.uk/publicaccess/tdc/"

import PublicAccess



+ 1
- 1
CGI/Sunderland.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "Sunderland City Council"
authority_short_name = "Sunderland"
base_url = "http://www.sunderland.gov.uk/publicaccess/"
base_url = "http://www.sunderland.gov.uk/publicaccess/tdc/"

import PublicAccess



+ 1
- 1
CGI/Test Valley.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "Test Valley Borough Council"
authority_short_name = "Test Valley"
base_url = "http://publicaccess.testvalley.gov.uk/publicaccess/"
base_url = "http://publicaccess.testvalley.gov.uk/publicaccess/tdc/"

import PublicAccess



+ 1
- 1
CGI/Tonbridge.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "Tonbridge and Malling Borough Council"
authority_short_name = "Tonbridge"
base_url = "http://publicaccess.tmbc.gov.uk/publicaccess/"
base_url = "http://publicaccess.tmbc.gov.uk/publicaccess/tdc/"

import PublicAccess



+ 1
- 1
CGI/West Norfolk.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "Kings Lynn and West Norfolk Borough Council"
authority_short_name = "West Norfolk"
base_url = "http://online.west-norfolk.gov.uk/publicaccess/"
base_url = "http://online.west-norfolk.gov.uk/publicaccess/tdc/"

import PublicAccess



+ 1
- 1
CGI/Woking.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "Woking Borough Council"
authority_short_name = "Woking"
base_url = "http://caps.woking.gov.uk/publicaccess/"
base_url = "http://caps.woking.gov.uk/publicaccess/tdc/"

import PublicAccess



+ 1
- 1
CGI/York.cgi View File

@@ -16,7 +16,7 @@ year = form.getfirst('year')

authority_name = "City of York Council"
authority_short_name = "York"
base_url = "http://planning.york.gov.uk/PublicAccess/"
base_url = "http://planning.york.gov.uk/PublicAccess/tdc/"

import PublicAccess



Loading…
Cancel
Save