Sfoglia il codice sorgente

Fix Bassetlaw (there really are some postcodes in there.. try

23/08/2007)
add reason to log and email.
import/raw
duncan.parkes 17 anni fa
parent
commit
d15087c8da
3 ha cambiato i file con 9 aggiunte e 5 eliminazioni
  1. +7
    -2
      trunk/deployment_script_common
  2. +2
    -2
      trunk/python_scrapers/AcolnetParser.py
  3. +0
    -1
      trunk/python_scrapers/SitesToGenerate.csv

+ 7
- 2
trunk/deployment_script_common Vedi File

@@ -67,14 +67,19 @@ if [ -a $BACKUP_DIRECTORY/docs/.htaccess ];
echo "No .htaccess to put back";
fi;

echo "Enter a reason for deployment:"
read $REASON
echo

# Write something in the deployment log
echo
echo "Updating deployment log"
echo "Deployed by $USER on `date`" >> $DEPLOYMENT_LOG
echo -e "Deployed by $USER on `date`\nReason: $REASON" >> $DEPLOYMENT_LOG
echo

# Email the team
echo "emailing the team"
echo "www.planningalerts.com redeployed by $USER at `date`" | mail -s "PlanningAlerts Deployment" $TEAM_EMAIL
echo -e "www.planningalerts.com redeployed by $USER on `date`\nReason: $REASON" | mail -s "PlanningAlerts Deployment" $TEAM_EMAIL

echo
echo "Remember to check that there are no changes needed in:"


+ 2
- 2
trunk/python_scrapers/AcolnetParser.py Vedi File

@@ -240,8 +240,8 @@ class BasingstokeParser(AcolnetParser):
class BassetlawParser(AcolnetParser):
case_number_tr = 1 # this one can be got by the td class attribute
reg_date_tr = 2
location_tr = 5
proposal_tr = 6
location_tr = 4
proposal_tr = 5

comments_email_address = "planning@bassetlaw.gov.uk"



+ 0
- 1
trunk/python_scrapers/SitesToGenerate.csv Vedi File

@@ -52,7 +52,6 @@
"Torbay Council", "Torbay", "http://www.torbay.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser"
"South Ribble Borough Council", "South Ribble", "http://publicaccess.southribble.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser"
"Peterborough City Council", "Peterborough", "http://194.72.246.15/publicaccess/dc/", "PublicAccess", "PublicAccessParser"
"Dundee City Council", "Dundee", "http://bwarrant.dundeecity.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser"
"Northumberland County Council", "Northumberland", "http://planning.northumberland.gov.uk/publicaccess/tdc/", "PublicAccess", "PublicAccessParser"
"Milton Keynes Council", "Milton Keynes", "http://publicaccess.milton-keynes.gov.uk/tdc/", "PublicAccess", "PublicAccessParser"
"Coventry City Council", "Coventry", "http://planning.coventry.gov.uk/", "ApplicationSearchServletParser", "CoventrySearchParser"


Caricamento…
Annulla
Salva