Changeset 5abe506


Ignore:
Timestamp:
Jan 27, 2010, 11:52:06 AM (15 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, client
Children:
064683a
Parents:
e0689aa
git-author:
Alex Dehnert <adehnert@…> (01/27/10 11:52:06)
git-committer:
Alex Dehnert <adehnert@…> (01/27/10 11:52:06)
Message:

Add spring_2010 import function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • treasury/vouchers/import_budget.py

    r52c3467 r5abe506  
    55import vouchers.models
    66import finance_core.models
     7from django.db import connection
    78from finance_core.models import BudgetArea
    89from finance_core.models import coerce_full_email
     
    125126    do_process_rows(committees, budget_file, term, depth)
    126127
     128
     129def spring_2010():
     130    committee_file = open('/mit/ua/officers/treasurer/resources/software/committees.csv')
     131    budget_file = open('/mit/ua/officers/treasurer/budgeting/FY10/private/spring-working.csv')
     132    term_name = 'Spring 2010'
     133    main(committee_file, budget_file, term_name, )
     134    print connection.queries
     135
     136
    127137if __name__== '__main__':
    128     print "Syntax: %s committee_file format_file budget_file budget_term [override_address]" % (sys.argv[0], )
    129     committees_file = open(sys.argv[1])
    130     format_str = open(sys.argv[2]).read()
    131     budget_file = open(sys.argv[3])
    132     term = sys.argv[4]
    133     override_address = False
    134     if(len(sys.argv) > 5):
    135         override_address = sys.argv[5]
    136     main(committees_file, format_str, budget_file, term, override_address=override_address,)
     138    #print "Syntax: %s committee_file format_file budget_file budget_term [override_address]" % (sys.argv[0], )
     139    spring_2010()
Note: See TracChangeset for help on using the changeset viewer.