Ignore:
Timestamp:
19 Sep 2006, 07:53:21 (18 years ago)
Author:
joachim
Message:

student apply admission should work now
the default_view for campus is now home_index.py
for students and student student_index.py
these script redirect to the appropriate PT

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  
    1313$Id: logged_in.py 34693 2006-03-23 17:44:22Z ogrisel $
    1414"""
     15import DateTime
     16current = DateTime.DateTime()
    1517
    1618from urllib import unquote
     
    2628    return to_member_home, to_workspaces
    2729
     30request = context.REQUEST
     31response = request.RESPONSE
    2832utool = context.portal_url
    2933mtool = context.portal_membership
     
    4347    if not is_anon:
    4448        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":
    5058                student.content_status_modify(workflow_action="enter_application_pin")
    5159                da = {}
     
    5361                da['app_ac_pin'] = pin
    5462                da['app_ac_date'] = current
    55                 application.getContent().edit(mapping = da)
    56                 to_waeup_student_home = True
     63                info['app_doc'].edit(mapping = da)
    5764        elif "Manager" in member.getRoles():
    5865            pass
  • WAeUP_SRP/trunk/skins/waeup_custom/standard_error_message.pt

    r531 r535  
    1515<tal:haserror condition="error_type">
    1616  <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" />
    1818  </tal:NotFound>
    1919
    20   <tal:default condition="python:0 and error_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" />
    2222  </tal:default>
    2323
    24   <tal:debugging condition="python:0 and checkPerm('Manage portal', here)">
     24  <tal:debugging condition="python:checkPerm('Manage portal', here)">
    2525    <table width="100%" cellpadding="2" cellspacing="2">
    2626      <tr>
Note: See TracChangeset for help on using the changeset viewer.