Changeset 6814 for main/waeup.sirp/trunk
- Timestamp:
- 21 Sep 2011, 16:44:12 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/catalog.py
r6786 r6814 22 22 matric_number = index.Field(attribute='matric_number') 23 23 state = index.Field(attribute='state') 24 certificate = index.Field(attribute='certificate') 24 25 25 26 class StudentQueryResultItem(object): -
main/waeup.sirp/trunk/src/waeup/sirp/students/interfaces.py
r6806 r6814 92 92 state = Attribute('Returns the registration state of a student') 93 93 password = Attribute('Encrypted password of a student') 94 certificate = Attribute('The certificate of any chosen study course') 94 95 95 96 def loggerInfo(ob_class, comment): -
main/waeup.sirp/trunk/src/waeup/sirp/students/student.py
r6769 r6814 66 66 return self 67 67 68 @property 69 def certificate(self): 70 cert = getattr(self.get('studycourse', None), 'certificate', None) 71 return cert 72 68 73 # Set all attributes of Student required in IStudent as field 69 74 # properties. Doing this, we do not have to set initial attributes
Note: See TracChangeset for help on using the changeset viewer.