Changeset 1902
- Timestamp:
- 15 Jun 2007, 16:48:48 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Students.py
r1894 r1902 66 66 def getStudentByRegNo(self,reg_no): ###( 67 67 """search student by JAMB Reg No and return StudentFolder""" 68 search = ZCatalog.searchResults(self.portal_catalog_real,{'meta_type': 'StudentApplication',69 'SearchableText': reg_no,70 })71 if len(search) < 1:68 res = self.students_catalog(jamb_reg_no = reg_no) 69 if len(res) == 1: 70 return getattr(self.portal_url.getPortalObject().campus.students,res[0].id) 71 else: 72 72 return None 73 return search[0].getObject().aq_parent 73 # don't search in portal_catalog 74 # search = ZCatalog.searchResults(self.portal_catalog_real,{'meta_type': 'StudentApplication', 75 # 'SearchableText': reg_no, 76 # }) 77 # if len(search) < 1: 78 # return None 79 # return search[0].getObject().aq_parent 74 80 75 81 ###)
Note: See TracChangeset for help on using the changeset viewer.