Ignore:
Timestamp:
29 Apr 2009, 08:05:56 (16 years ago)
Author:
Henrik Bettermann
Message:
  • implement date fileds in portal base configuration
  • ois: use date1-3 fields for principal's signature on academic_report_slip
File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_ois/getStudyLevelInfo.py

    r4036 r4098  
    1818"""
    1919
     20import DateTime
     21
    2022info = context.waeup_tool.getAccessInfo(context)
    2123student_id = info['student_id']
     
    2426
    2527mtool = context.portal_membership
     28pprops = context.portal_properties
    2629member = mtool.getAuthenticatedMember()
    2730member_id = str(member)
     
    177180info['app_doc'] = student.application.getContent()
    178181
     182if 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')
     186else:
     187    info['date1'] = 'n/a'
     188    info['date2'] = 'n/a'
     189    info['date3'] = 'n/a'
     190
     191
    179192return info
Note: See TracChangeset for help on using the changeset viewer.