Changeset 4098 for WAeUP_SRP/trunk/skins/waeup_ois/getStudyLevelInfo.py
- Timestamp:
- 29 Apr 2009, 08:05:56 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_ois/getStudyLevelInfo.py
r4036 r4098 18 18 """ 19 19 20 import DateTime 21 20 22 info = context.waeup_tool.getAccessInfo(context) 21 23 student_id = info['student_id'] … … 24 26 25 27 mtool = context.portal_membership 28 pprops = context.portal_properties 26 29 member = mtool.getAuthenticatedMember() 27 30 member_id = str(member) … … 177 180 info['app_doc'] = student.application.getContent() 178 181 182 if pprops.session == info['session']: 183 info['date1'] = DateTime.DateTime(pprops.date1).strftime('%d/%m/%Y') 184 info['date2'] = DateTime.DateTime(pprops.date2).strftime('%d/%m/%Y') 185 info['date3'] = DateTime.DateTime(pprops.date3).strftime('%d/%m/%Y') 186 else: 187 info['date1'] = 'n/a' 188 info['date2'] = 'n/a' 189 info['date3'] = 'n/a' 190 191 179 192 return info
Note: See TracChangeset for help on using the changeset viewer.