Changeset 5200
- Timestamp:
- 20 May 2010, 10:08:17 (14 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTables.py
r5146 r5200 849 849 ('matric_no', 850 850 'lga', 851 'date_of_birth', # birthday 851 852 ) 852 853 }, … … 859 860 'email', 860 861 'phone', 862 'marit_stat', 861 863 ) 862 864 }, … … 986 988 return getattr(certificate_res[0].getObject().getContent(),'study_mode','unknown') 987 989 990 991 def get_from_doc_marit_stat(self,doc,cached_data={}): 992 "return the students marit_stat" 993 if doc is None: 994 return None 995 ms = getattr(doc,'marit_stat',None) 996 if ms == True: 997 return 'married' 998 elif ms == False: 999 return 'single' 1000 else: 1001 return 'undefined' 1002 1003 def get_from_doc_date_of_birth(self,doc,cached_data={}): 1004 "return the students date of birth" 1005 if doc is None: 1006 return None 1007 return getattr(doc,'birthday',None) 988 1008 989 1009 def get_from_doc_session(self,doc,cached_data={}): -
WAeUP_SRP/trunk/profiles/default/students_catalog.xml
r3698 r5200 79 79 <column value="entry_session"/> 80 80 <column value="session"/> 81 <column value="date_of_birth"/> 82 <column value="marit_stat"/> 83 81 84 </object> -
WAeUP_SRP/trunk/skins/waeup_student/getFormattedStudentEntry.py
r4033 r5200 26 26 elif f == "name": 27 27 d[f] = d[f].strip() 28 #elif f == "date_of_birth": 29 # d[f] = str(d[f]) 28 30 29 31 if not d['email']:
Note: See TracChangeset for help on using the changeset viewer.