Changeset 2014
- Timestamp:
- 13 Jul 2007, 11:50:28 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Students.py
r2012 r2014 99 99 def formatLGA(lga): 100 100 if lga.find('_') > -1: 101 return "%s / %s" % (lga.split('_')[0].upper(),lga.split('_')[1].upper()) 102 return lga 101 lgadic = lga.split('_') 102 return lgadic[0].upper(),lgadic[1].upper() 103 return "",lga 103 104 104 105 class StudentsFolder(CPSDocument): ###( … … 911 912 "matric_no", 912 913 "jamb_reg_no", 914 "name", 913 915 "review_state", 916 "entry_session", 917 "session", 918 "entry_mode", 919 "mode", 920 "verdict", 914 921 "sex", 915 922 "email", 923 "phone", 916 924 "faculty", 917 925 "department", … … 919 927 "level", 920 928 ), 921 'personal': ('firstname',922 'middlename',923 'lastname',924 'perm_address',925 ),929 #'personal': ('firstname', 930 # 'middlename', 931 # 'lastname', 932 # 'perm_address', 933 # ), 926 934 'clearance': ('state', 927 935 'lga', … … 947 955 nr2export = len(students) 948 956 logger.info('%s starts exportStudents, %s student records to export' % (member,nr2export)) 949 chunk = 2000957 chunk = 1000 950 958 total = 0 951 959 start = DateTime.DateTime().timeTime() … … 986 994 continue 987 995 if with_lga: 988 d[' lga'] = formatLGA(d['lga'])996 d['state'],d['lga'] = formatLGA(d['lga']) 989 997 lines.append(format % d) 990 998 total += 1
Note: See TracChangeset for help on using the changeset viewer.