- Timestamp:
- 29 Jan 2012, 08:29:43 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/batching.py
r7532 r7534 268 268 return self.getParent(row, site) is not None 269 269 270 270 271 def entryExists(self, row, site): 272 return self.getEntry(row, site) is not None 273 274 def getEntry(self, row, site): 271 275 student = self.getParent(row, site) 272 if not student:273 return None274 if 'studycourse' in student:275 return student276 return None277 278 def getEntry(self, row, site):279 student = self.entryExists(row, site)280 276 if not student: 281 277 return None … … 301 297 # We have to check if current_level is in range of certificate. 302 298 # This is not done by the converter. 303 certificate = conv_dict['certificate'] 304 start_level = certificate.start_level 305 end_level = certificate.end_level 306 if conv_dict['current_level'] < start_level or \ 307 conv_dict['current_level'] > end_level: 308 errs.append(('current_level','not in range')) 299 if conv_dict.has_key('certificate'): 300 certificate = conv_dict['certificate'] 301 start_level = certificate.start_level 302 end_level = certificate.end_level 303 if conv_dict['current_level'] < start_level or \ 304 conv_dict['current_level'] > end_level: 305 errs.append(('current_level','not in range')) 309 306 return errs, inv_errs, conv_dict 310 307
Note: See TracChangeset for help on using the changeset viewer.