Ignore:
Timestamp:
Apr 8, 2012, 11:47:35 PM (14 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage
Children:
c3cd6c2
Parents:
a03cb61
git-author:
Alex Dehnert <adehnert@…> (04/08/12 23:47:35)
git-committer:
Alex Dehnert <adehnert@…> (04/08/12 23:47:35)
Message:

Make CSV of space access available to CAC online

Fixes ASA Trac #91.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/space/dump_locker_access.py

    rd85ba8f r2c86ed1  
    3131    return space_users
    3232
    33 def print_info(space_users):
    34     writer = csv.writer(sys.stdout)
     33def print_info(space_users, stream=None, ):
     34    if not stream: stream = sys.stdout
     35    writer = csv.writer(stream)
    3536    writer.writerow(("space", "last_name", "first_name", "username", "mit_id", ))
    3637    for space_id, users in space_users.items():
Note: See TracChangeset for help on using the changeset viewer.