scripts/fetch_name_gender.py
author Anoop Jacob Thomas<anoop@fossee.in>
Tue, 09 Nov 2010 12:02:42 +0530
branchanoop
changeset 246 3a32df4b3171
parent 204 a190811581a8
permissions -rw-r--r--
added custom invitation mail page.

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()