indicates that the current application is finished.
- # Now we can fetch the info_page to get the address, postcode,
- # and description.
- # If we don't have a reference, then we are in the header row,
- # which we don't want.
- # There is no point in doing this if the date is not the requested one.
-
- if tag == 'tr' and \
- self._current_application.council_reference is not None and \
- self._current_application.date_received == self._requested_date:
-
- info_page_parser = SouthOxfordshireInfoURLParser()
- info_page_parser.feed(urllib2.urlopen(self._current_application.info_url).read())
-
- self._current_application.address = info_page_parser.address
- self._current_application.postcode = getPostcodeFromText(info_page_parser.address)
- self._current_application.description = info_page_parser.description
-
- # Add the current application to the results set
- self._results.addApplication(self._current_application)
-
- # At the end of the 5th , self._data should contain
- # the received date of the application.
- if tag == 'td' and self._td_count == 5:
- app_year, app_month, app_day = tuple(time.strptime(self._data, "%d %B %Y")[:3])
- self._current_application.date_received = datetime.date(app_year, app_month, app_day)
- self._data = ''
- self._td_count = 0
-
- def handle_data(self, data):
- # There is no need to do anything if we aren't in table 3.
- if self._table_count == 3:
- # If we are in the first | , and the get_reference flag is set,
- # then the next data is the reference.
- if self._td_count == 1 and self._get_reference:
- self._current_application.council_reference = data
-
- # The comment url can now be made, as it depends only on the reference.
- # On this site, the link to the comment page is only displayed once
- # the planning authority has decided who is handling this application
- # and has opened consultations. The link below works straight away,
- # and also works for apps for which the consultation period is over.
- # I have no idea if anything is actually done with these comments if
- # it is followed too early...
- self._current_application.comment_url = comment_url %{'reference': self._current_application.council_reference}
-
- # Set the get_reference flag back to False.
- self._get_reference = False
-
- # If we are in the 5th | , then we need to collect all the data together
- # before we can use it. This is actually processed in handle_endtag.
- if self._td_count == 5:
- self._data += data
-
- def handle_entityref( self, ref ):
- # We might have some entity_refs to clear up.
- # there is no need to bother with this if we aren't in the results table.
- if self._table_count == 3 and self._td_count == 5:
- if ref == 'nbsp':
- self._data += ' '
-
-
- def getResultsByDayMonthYear(self, day, month, year):
- """This will return an ApplicationResults object containg the
- applications for the date passed in."""
-
- today = datetime.date.today()
- self._requested_date = datetime.date(year, month, day)
- delta = today - self._requested_date
-
- # to get the correct page, we need
- # page ((days mod 7) + 1)
- page_number = delta.days/7 + 1
-
- response = urllib2.urlopen(search_url %page_number)
-
- contents = response.read()
-
- self.feed(contents)
-
- return self._results
-
-
- def getResults(self, day, month, year):
- return self.getResultsByDayMonthYear(int(day), int(month), int(year)).displayXML()
-
-class SouthOxfordshireInfoURLParser(HTMLParser.HTMLParser):
- """This parser is to get the description and address out of the info page
- for a South Oxfordshire application."""
-
- def __init__(self):
- HTMLParser.HTMLParser.__init__(self)
-
- self.address = None
- self.description = None
-
- # These two states will be set to:
- # 0 - if we haven't yet got that bit
- # 1 - if we are currently working on it
- # 2 - if we have finished
- self._address_state = 0
- self._description_state = 0
-
- # We well need to know whether or not we are in a |
- self._in_td = False
-
- # This is used for collecting together date which comes in several bits.
- self._data = ''
-
- def handle_starttag(self, tag, attrs):
- # If we see the start of a | and we are still interested in some data
- # then set the td flag to true, and blank the data
- if tag == 'td' and (self._address_state < 2 or self._description_state < 2):
- self._in_td = True
- self._data = ''
-
- def handle_endtag(self, tag):
- if tag == 'td' and (self._address_state < 2 or self._description_state < 2):
- # If we are working on the description,
- # set description from _data and note that we need to work on it no more.
- if self._description_state == 1:
- self.description = self._data
- self._description_state = 2
-
-
- # If we are working on the address,
- # set address from _data and note that we need to work on it no more.
- elif self._address_state == 1:
- self.address = self._data
- self._address_state = 2
-
- # If we see data which says 'Descripton',
- # then set the description state to working.
- elif self._data.strip() == 'Description':
- self._description_state = 1
-
- # If we see data which says 'Location',
- # then set the addresss state to working.
- elif self._data.strip() == 'Location':
- self._address_state = 1
-
- # Note that we are leaving the |
- self._in_td = False
-
- def handle_data(self, data):
- # if we are in a td, and we are still interested in the data for something,
- # append the current bit to self._data
- if self._in_td and (self._address_state < 2 or self._description_state < 2):
- self._data += data
-
-
-# TODO
-
-# find out what time of day this is run - does it matter that
-# we aren't being careful with daylight saving time etc.
-
-# Can we check that scraped email address really is
-# an email address?
diff --git a/cgi-bin/Southampton.cgi b/cgi-bin/Southampton.cgi
deleted file mode 100644
index bc879c4..0000000
--- a/cgi-bin/Southampton.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for Southampton City 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 = "Southampton City Council"
-authority_short_name = "Southampton"
-base_url = "http://publicaccess.southampton.gov.uk/publicaccess/tdc/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-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
diff --git a/cgi-bin/Spelthorne.cgi b/cgi-bin/Spelthorne.cgi
deleted file mode 100644
index 8506bfa..0000000
--- a/cgi-bin/Spelthorne.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for Spelthorne 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 = "Spelthorne Borough Council"
-authority_short_name = "Spelthorne"
-base_url = "http://phoenix.spelthorne.gov.uk/PublicAccess/tdc/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-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
diff --git a/cgi-bin/St Helens.cgi b/cgi-bin/St Helens.cgi
deleted file mode 100644
index 022f0a6..0000000
--- a/cgi-bin/St Helens.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for St Helens 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 = "St Helens Council"
-authority_short_name = "St Helens"
-base_url = "http://212.248.225.150:8080/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-import ApplicationSearchServletParser
-
-parser = ApplicationSearchServletParser.StHelensSearchParser(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
diff --git a/cgi-bin/Stevenage.cgi b/cgi-bin/Stevenage.cgi
deleted file mode 100644
index e0fcf0d..0000000
--- a/cgi-bin/Stevenage.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for Stevenage 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 = "Stevenage Borough Council"
-authority_short_name = "Stevenage"
-base_url = "http://publicaccess.stevenage.gov.uk/publicaccess/tdc/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-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
diff --git a/cgi-bin/Stirling.cgi b/cgi-bin/Stirling.cgi
deleted file mode 100644
index 9fa9017..0000000
--- a/cgi-bin/Stirling.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for Stirling 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 = "Stirling Council"
-authority_short_name = "Stirling"
-base_url = "http://planpub.stirling.gov.uk/publicaccess/tdc/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-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
diff --git a/cgi-bin/Stockton-On-Tees.cgi b/cgi-bin/Stockton-On-Tees.cgi
deleted file mode 100644
index 0a40e3b..0000000
--- a/cgi-bin/Stockton-On-Tees.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for Stockton-On-Tees 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 = "Stockton-On-Tees Borough Council"
-authority_short_name = "Stockton-On-Tees"
-base_url = "http://www.developmentcontrol.stockton.gov.uk/publicaccess/tdc/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-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
diff --git a/cgi-bin/Stratford.cgi b/cgi-bin/Stratford.cgi
deleted file mode 100644
index e58549f..0000000
--- a/cgi-bin/Stratford.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for Stratford-on-Avon 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 = "Stratford-on-Avon District Council"
-authority_short_name = "Stratford"
-base_url = "http://apps.stratford.gov.uk/publicaccess/tdc/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-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
diff --git a/cgi-bin/Suffolk Coastal.cgi b/cgi-bin/Suffolk Coastal.cgi
deleted file mode 100644
index 59a892d..0000000
--- a/cgi-bin/Suffolk Coastal.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for Suffolk Coastal 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 = "Suffolk Coastal District Council"
-authority_short_name = "Suffolk Coastal"
-base_url = "https://apps3.suffolkcoastal.gov.uk/planningonline/acolnetcgi.exe?ACTION=UNWRAP&RIPNAME=Root.pgesearch"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-import AcolnetParser
-
-parser = AcolnetParser.SuffolkCoastalParser(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
diff --git a/cgi-bin/Sunderland.cgi b/cgi-bin/Sunderland.cgi
deleted file mode 100644
index a36d963..0000000
--- a/cgi-bin/Sunderland.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for Sunderland City 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 = "Sunderland City Council"
-authority_short_name = "Sunderland"
-base_url = "http://www.sunderland.gov.uk/publicaccess/tdc/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-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
diff --git a/cgi-bin/Surrey Heath.cgi b/cgi-bin/Surrey Heath.cgi
deleted file mode 100755
index b9f0980..0000000
--- a/cgi-bin/Surrey Heath.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for Surrey Heath 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 = "Surrey Heath Borough Council"
-authority_short_name = "Surrey Heath"
-base_url = "https://www.public.surreyheath-online.gov.uk/whalecom60b1ef305f59f921/whalecom0/Scripts/PlanningPagesOnline/acolnetcgi.gov?ACTION=UNWRAP&RIPNAME=Root.pgesearch"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-import AcolnetParser
-
-parser = AcolnetParser.SurreyHeathParser(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
diff --git a/cgi-bin/Sutton.cgi b/cgi-bin/Sutton.cgi
deleted file mode 100755
index b563c76..0000000
--- a/cgi-bin/Sutton.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for London Borough of Sutton.
-# 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 = "London Borough of Sutton"
-authority_short_name = "Sutton"
-base_url = "http://82.43.4.135/FASTWEB/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-import FastWeb
-
-parser = FastWeb.FastWeb(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
diff --git a/cgi-bin/Teignbridge.cgi b/cgi-bin/Teignbridge.cgi
deleted file mode 100644
index b3a58e6..0000000
--- a/cgi-bin/Teignbridge.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for Teignbridge 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 = "Teignbridge District Council"
-authority_short_name = "Teignbridge"
-base_url = "http://213.152.63.161/publicaccess/tdc/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-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
diff --git a/cgi-bin/Tendring.cgi b/cgi-bin/Tendring.cgi
deleted file mode 100755
index 60f9846..0000000
--- a/cgi-bin/Tendring.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for Tendring 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 = "Tendring District Council"
-authority_short_name = "Tendring"
-base_url = "http://195.99.151.54/publicaccess/tdc/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-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
diff --git a/cgi-bin/Test Valley.cgi b/cgi-bin/Test Valley.cgi
deleted file mode 100644
index 2299312..0000000
--- a/cgi-bin/Test Valley.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for Test Valley 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 = "Test Valley Borough Council"
-authority_short_name = "Test Valley"
-base_url = "http://publicaccess.testvalley.gov.uk/publicaccess/tdc/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-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
diff --git a/cgi-bin/Tonbridge.cgi b/cgi-bin/Tonbridge.cgi
deleted file mode 100644
index 6f1f3cc..0000000
--- a/cgi-bin/Tonbridge.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for Tonbridge and Malling 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 = "Tonbridge and Malling Borough Council"
-authority_short_name = "Tonbridge"
-base_url = "http://publicaccess.tmbc.gov.uk/publicaccess/tdc/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-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
diff --git a/cgi-bin/Torbay.cgi b/cgi-bin/Torbay.cgi
deleted file mode 100644
index 5c0acb3..0000000
--- a/cgi-bin/Torbay.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for Torbay 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 = "Torbay Council"
-authority_short_name = "Torbay"
-base_url = "http://www.torbay.gov.uk/publicaccess/tdc/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-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
diff --git a/cgi-bin/Vale Royal.cgi b/cgi-bin/Vale Royal.cgi
deleted file mode 100755
index b307656..0000000
--- a/cgi-bin/Vale Royal.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for Vale Royal 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 = "Vale Royal Borough Council"
-authority_short_name = "Vale Royal"
-base_url = "http://pa.valeroyal.gov.uk/publicaccess/tdc/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-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
diff --git a/cgi-bin/Watford.cgi b/cgi-bin/Watford.cgi
deleted file mode 100755
index ec58fbf..0000000
--- a/cgi-bin/Watford.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for Watford 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 = "Watford Borough Council"
-authority_short_name = "Watford"
-base_url = "http://ww3.watford.gov.uk/publicaccess/tdc/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-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
diff --git a/cgi-bin/Waveney.cgi b/cgi-bin/Waveney.cgi
deleted file mode 100644
index 6720172..0000000
--- a/cgi-bin/Waveney.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/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/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-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
diff --git a/cgi-bin/Wear Valley.cgi b/cgi-bin/Wear Valley.cgi
deleted file mode 100644
index a3da0dc..0000000
--- a/cgi-bin/Wear Valley.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for Wear Valley 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 = "Wear Valley District Council"
-authority_short_name = "Wear Valley"
-base_url = "http://planning.wearvalley.gov.uk/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-import ApplicationSearchServletParser
-
-parser = ApplicationSearchServletParser.WearValleySearchParser(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
diff --git a/cgi-bin/Wellingborough.cgi b/cgi-bin/Wellingborough.cgi
deleted file mode 100644
index 11bbeb7..0000000
--- a/cgi-bin/Wellingborough.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for Wellingborough 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 = "Wellingborough Borough Council"
-authority_short_name = "Wellingborough"
-base_url = "http://planning.wellingborough.gov.uk/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-import ApplicationSearchServletParser
-
-parser = ApplicationSearchServletParser.WellingboroughSearchParser(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
diff --git a/cgi-bin/Welwyn-Hatfield.cgi b/cgi-bin/Welwyn-Hatfield.cgi
deleted file mode 100755
index e07924e..0000000
--- a/cgi-bin/Welwyn-Hatfield.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for Welwyn-Hatfield 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 = "Welwyn-Hatfield District Council"
-authority_short_name = "Welwyn-Hatfield"
-base_url = "https://fastweb.welhat.gov.uk/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-import FastWeb
-
-parser = FastWeb.FastWeb(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
diff --git a/cgi-bin/West Berkshire.cgi b/cgi-bin/West Berkshire.cgi
deleted file mode 100644
index f96f0f9..0000000
--- a/cgi-bin/West Berkshire.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for West Berkshire 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 = "West Berkshire Council"
-authority_short_name = "West Berkshire"
-base_url = "http://ww2.westberks.gov.uk/publicaccess/tdc/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-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
diff --git a/cgi-bin/West Lancashire.cgi b/cgi-bin/West Lancashire.cgi
deleted file mode 100644
index e62975c..0000000
--- a/cgi-bin/West Lancashire.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for West Lancashire 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 = "West Lancashire District Council"
-authority_short_name = "West Lancashire"
-base_url = "http://publicaccess.westlancsdc.gov.uk/PublicAccess/tdc/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-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
diff --git a/cgi-bin/West Norfolk.cgi b/cgi-bin/West Norfolk.cgi
deleted file mode 100644
index c644cfb..0000000
--- a/cgi-bin/West Norfolk.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for Kings Lynn and West Norfolk 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 = "Kings Lynn and West Norfolk Borough Council"
-authority_short_name = "West Norfolk"
-base_url = "http://online.west-norfolk.gov.uk/publicaccess/tdc/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-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
diff --git a/cgi-bin/Winchester.cgi b/cgi-bin/Winchester.cgi
deleted file mode 100755
index a71218f..0000000
--- a/cgi-bin/Winchester.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for Winchester City 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 = "Winchester City Council"
-authority_short_name = "Winchester"
-base_url = "http://win2padmz.winchester.gov.uk/publicaccess/tdc/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-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
diff --git a/cgi-bin/Woking.cgi b/cgi-bin/Woking.cgi
deleted file mode 100644
index 74b8027..0000000
--- a/cgi-bin/Woking.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for Woking 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 = "Woking Borough Council"
-authority_short_name = "Woking"
-base_url = "http://caps.woking.gov.uk/publicaccess/tdc/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-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
diff --git a/cgi-bin/Wolverhampton.cgi b/cgi-bin/Wolverhampton.cgi
deleted file mode 100755
index f91ad61..0000000
--- a/cgi-bin/Wolverhampton.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for Wolverhampton City 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 = "Wolverhampton City Council"
-authority_short_name = "Wolverhampton"
-base_url = "http://planningonline.wolverhampton.gov.uk/PublicAccess/dc/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-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
diff --git a/cgi-bin/Wyre Forest.cgi b/cgi-bin/Wyre Forest.cgi
deleted file mode 100755
index b249410..0000000
--- a/cgi-bin/Wyre Forest.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for Wyre Forest 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 = "Wyre Forest District Council"
-authority_short_name = "Wyre Forest"
-base_url = "http://www.wyreforest.gov.uk/fastweb/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-import FastWeb
-
-parser = FastWeb.FastWeb(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
diff --git a/cgi-bin/York.cgi b/cgi-bin/York.cgi
deleted file mode 100644
index 11030b7..0000000
--- a/cgi-bin/York.cgi
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/local/bin/python
-
-# This is the parser for City of York 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 = "City of York Council"
-authority_short_name = "York"
-base_url = "http://planning.york.gov.uk/PublicAccess/tdc/"
-
-#print "Content-Type: text/html" # HTML is following
-#print
-
-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
|