Changeset 5abe506
- Timestamp:
- Jan 27, 2010, 11:52:06 AM (15 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
treasury/vouchers/import_budget.py
r52c3467 r5abe506 5 5 import vouchers.models 6 6 import finance_core.models 7 from django.db import connection 7 8 from finance_core.models import BudgetArea 8 9 from finance_core.models import coerce_full_email … … 125 126 do_process_rows(committees, budget_file, term, depth) 126 127 128 129 def 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 127 137 if __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.