scripts/fetch_name_gender.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Fri, 06 Aug 2010 14:24:00 +0530
branchanoop
changeset 215 363d51e2cfa5
parent 204 a190811581a8
permissions -rw-r--r--
Development settings will run Mail server on 1025 port.

from sdi.models import ParticipantInfo

f = open('names.txt', 'w')
for participant in participants:
    f.write('%s %s, %s\n' % (participant.participant.first_name, participant.participant.last_name, participant.participant.gender))

f.close()