Changeset 884ab7c
- Timestamp:
- Jun 23, 2012, 4:33:55 PM (13 years ago)
- Branches:
- master, space-access, stable, stage
- Children:
- 7e8ea71
- Parents:
- a451497
- git-author:
- Alex Dehnert <adehnert@…> (06/23/12 16:33:55)
- git-committer:
- ASA Group Database <asa-db@…> (06/23/12 16:33:55)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asadb/util/export_website_groups.py
rd9137a7 r884ab7c 4 4 # ./export_website_groups.py > /mit/asa/resources/group-include.html 5 5 6 import codecs 6 7 import os 7 8 import sys … … 16 17 import groups.models 17 18 18 TMPL = Template( """19 TMPL = Template(u""" 19 20 <!-- Automatically generated by asadb/util/export_website_groups.py. 20 21 Do not edit; instead re-run that script (or edit it as necessary). --> … … 34 35 {'groups': groups.models.Group.objects.filter(group_status__is_active=True)} 35 36 ) 36 print TMPL.render(ctx) 37 out = codecs.getwriter('utf8')(sys.stdout) 38 out.write(TMPL.render(ctx))
Note: See TracChangeset
for help on using the changeset viewer.