Changeset c547de5 for asadb/groups/format_groups.py
- Timestamp:
- Nov 3, 2012, 4:16:53 PM (13 years ago)
- Branches:
- master, space-access, stable, stage
- Children:
- 251503b
- Parents:
- 5f1eaa3
- git-author:
- Alex Dehnert <adehnert@…> (11/03/12 16:16:53)
- git-committer:
- Alex Dehnert <adehnert@…> (11/03/12 16:16:53)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asadb/groups/format_groups.py
ra7d30ef rc547de5 2 2 3 3 import csv 4 import datetime 4 5 import os 5 6 import sys … … 45 46 'midway' : { 46 47 'prefix': """ 47 <!-- Automatically generated by %(script)s %(mode)s. 48 Do not edit; instead re-run that script (or edit it as necessary). --> 48 <!-- 49 Automatically generated by %(script)s %(mode)s on %(date)s. 50 Do not edit; instead ask a DB maintainer (asa-db@) to re-run that script (or edit script as necessary). 51 52 A more recent version may be in /mit/asa-db/data/db-dump/midway_groups.html. 53 Includes active, suspended, applying, and NGE's (status) who aren't Dorm/FSILG (class). 54 --> 49 55 """, 50 56 'format' : '<option value="%(html_name)s">%(html_name)s</option>', … … 74 80 predicate = spec['predicate'] 75 81 gs = groups.models.Group.objects.filter(predicate).distinct() 76 static_args = {'script': 'groups/format_groups.py', 'mode':mode, } 82 static_args = { 83 'script': 'groups/format_groups.py', 84 'mode':mode, 85 'date':datetime.datetime.now(), 86 } 77 87 if 'prefix' in spec: 78 88 print spec['prefix'] % static_args
Note: See TracChangeset
for help on using the changeset viewer.