Changeset 535 for WAeUP_SRP/trunk/skins/waeup_custom
- Timestamp:
- 19 Sep 2006, 07:53:21 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_custom
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_custom/logged_in.py
r524 r535 13 13 $Id: logged_in.py 34693 2006-03-23 17:44:22Z ogrisel $ 14 14 """ 15 import DateTime 16 current = DateTime.DateTime() 15 17 16 18 from urllib import unquote … … 26 28 return to_member_home, to_workspaces 27 29 30 request = context.REQUEST 31 response = request.RESPONSE 28 32 utool = context.portal_url 29 33 mtool = context.portal_membership … … 43 47 if not is_anon: 44 48 if "Student" in member.getRoles(): 45 member_id = str(member) 46 student = getattr(context.campus.students,member_id,) 47 if context.portal_workflow.getInfoFor(student, 48 'review_state', 49 None) == "created": 49 to_waeup_student_home = True 50 info = context.getStudentInfo() 51 student = info['student'] 52 ## member_id = str(member) 53 ## student = getattr(context.campus.students,member_id,) 54 ## if context.portal_workflow.getInfoFor(student, 55 ## 'review_state', 56 ## None) == "created": 57 if info['review_state'] == "created": 50 58 student.content_status_modify(workflow_action="enter_application_pin") 51 59 da = {} … … 53 61 da['app_ac_pin'] = pin 54 62 da['app_ac_date'] = current 55 application.getContent().edit(mapping = da) 56 to_waeup_student_home = True 63 info['app_doc'].edit(mapping = da) 57 64 elif "Manager" in member.getRoles(): 58 65 pass -
WAeUP_SRP/trunk/skins/waeup_custom/standard_error_message.pt
r531 r535 15 15 <tal:haserror condition="error_type"> 16 16 <tal:NotFound condition="python:error_type == 'NotFound'"> 17 <metal:block use-macro="here/ not_found/macros/not_found" />17 <metal:block use-macro="here/error_not_found/macros/not_found" /> 18 18 </tal:NotFound> 19 19 20 <tal:default condition="python: 0 anderror_type != 'NotFound'">21 <metal:block use-macro="here/error_ lib_other/macros/other" />20 <tal:default condition="python:error_type != 'NotFound'"> 21 <metal:block use-macro="here/error_other/macros/other" /> 22 22 </tal:default> 23 23 24 <tal:debugging condition="python: 0 andcheckPerm('Manage portal', here)">24 <tal:debugging condition="python:checkPerm('Manage portal', here)"> 25 25 <table width="100%" cellpadding="2" cellspacing="2"> 26 26 <tr>
Note: See TracChangeset for help on using the changeset viewer.