scripts/fetch_name_gender.py
branchanoop
changeset 204 a190811581a8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/fetch_name_gender.py	Mon Aug 02 18:02:52 2010 +0530
@@ -0,0 +1,7 @@
+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()