Changeset 0ac15a1 for asadb/util


Ignore:
Timestamp:
Apr 5, 2012, 1:12:37 AM (14 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage
Children:
a03cb61
Parents:
ffecc7f (diff), a9a8f3d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Alex Dehnert <adehnert@…> (04/05/12 01:12:37)
git-committer:
Alex Dehnert <adehnert@…> (04/05/12 01:12:37)
Message:

Merge branch 'office-access'

Location:
asadb/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • asadb/util/emails.py

    r55ffcd1 r6dfcd66  
    44
    55def email_from_template(tmpl, context,
    6         subject, to=[], cc=[], from_email='asa-db@mit.edu', ):
     6        subject, to=[], cc=[], from_email=None, ):
    77    tmpl_obj = get_template(tmpl)
    88    ctx = Context(context)
  • asadb/util/warehouse-refresh.sh

    r5c77dea r2ca19cb  
    22
    33author="$USER warehouse-refresh.sh on $(hostname) <asa-db@mit.edu>"
     4basedir="$(dirname "$(readlink -f "$0")")"
     5database="$("$basedir/../settings/fetch" database NAME)"
    46
    57date
    68
    7 cd saved-data
     9cd "$basedir/saved-data"
    810
    9 mysqldump --skip-extended-insert asa+forms > data.sql
     11mysqldump --skip-extended-insert "$database" > data.sql
    1012
    1113echo
     
    2022echo
    2123echo Performing replacement
    22 echo "TRUNCATE TABLE groups_group" | mysql asa+forms
     24echo "TRUNCATE TABLE groups_group" | mysql "$database"
    2325../import_db.py < ../warehouse-dump.csv > /dev/null
    24 mysqldump --skip-extended-insert asa+forms > data.sql
     26mysqldump --skip-extended-insert "$database" > data.sql
    2527
    2628echo
Note: See TracChangeset for help on using the changeset viewer.