Changeset 1844 for WAeUP_SRP/trunk/WAeUPTool.py
- Timestamp:
- 2 Jun 2007, 09:15:52 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTool.py
r1827 r1844 815 815 jamb_reg_no != res[0].jamb_reg_no: 816 816 return '%s' % res[0].id ,"student has no jamb_reg_no %s" % jamb_reg_no 817 elif jamb_reg_no: 818 res = self.students_catalog(jamb_reg_no = jamb_reg_no) 819 if not res: 820 return '',"no student with jamb_reg_no %s" % jamb_reg_no 817 821 elif matric_no: 818 822 res = self.students_catalog(matric_no = matric_no) 819 823 if not res: 820 824 return '',"no student with matric_no %s" % matric_no 821 elif jamb_reg_no and res[0].jamb_reg_no and\ 822 jamb_reg_no != res[0].jamb_reg_no: 823 return '%s' % res[0].id ,"student has no jamb_reg_no %s" % jamb_reg_no 824 elif jamb_reg_no: 825 res = self.students_catalog(jamb_reg_no = jamb_reg_no) 826 if not res: 827 return '',"no student with jamb_reg_no %s" % jamb_reg_no 825 #elif jamb_reg_no and res[0].jamb_reg_no and\ 826 # jamb_reg_no != res[0].jamb_reg_no: 827 # return '%s' % res[0].id ,"student has no jamb_reg_no %s" % jamb_reg_no 828 828 829 sid = res[0].id 829 830 student_obj = getattr(students_folder,sid) … … 845 846 d['Title'] = f2t[pt]['title'] 846 847 for field in f2t[pt]['fields']: 848 if not mapping.get(field,None): 849 continue 847 850 d[field] = mapping.get(field,'') 848 851 sub_doc.edit(mapping = d)
Note: See TracChangeset for help on using the changeset viewer.