Changeset 839


Ignore:
Timestamp:
11 Nov 2006, 12:49:31 (18 years ago)
Author:
Henrik Bettermann
Message:

view aliases of StudentTypes? set to student_index
student_index now controls the view of student objects

Location:
WAeUP_SRP/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/default/types/StudentAccommodation.xml

    r805 r839  
    2626 <property name="storage_methods"/>
    2727 <property name="cps_is_portlet">False</property>
    28  <alias from="(Default)" to="waeup_document_view"/>
    29  <alias from="view" to="waeup_document_view"/>
     28 <alias from="(Default)" to="student_index"/>
     29 <alias from="view" to="student_index"/>
    3030 <action title="View" action_id="view" category="object"
    31     condition_expr="" url_expr="string:${object_url}/waeup_document_view"
     31    condition_expr="" url_expr="string:${object_url}/student_index"
    3232    visible="True">
    3333  <permission value="View"/>
  • WAeUP_SRP/trunk/profiles/default/types/StudentApplication.xml

    r739 r839  
    2626 <property name="storage_methods"/>
    2727 <property name="cps_is_portlet">False</property>
    28  <alias from="(Default)" to="waeup_document_view"/>
    29  <alias from="view" to="waeup_document_view"/>
     28 <alias from="(Default)" to="student_index"/>
     29 <alias from="view" to="student_index"/>
    3030 <action title="View" action_id="view" category="object"
    31     condition_expr="" url_expr="string:${object_url}/waeup_document_view"
     31    condition_expr="" url_expr="string:${object_url}/student_index"
    3232    visible="True">
    3333  <permission value="View"/>
  • WAeUP_SRP/trunk/profiles/default/types/StudentClearance.xml

    r739 r839  
    2828 <property name="storage_methods"/>
    2929 <property name="cps_is_portlet">False</property>
    30  <alias from="(Default)" to="waeup_document_view"/>
    31  <alias from="view" to="academics_contents"/>
     30 <alias from="(Default)" to="student_index"/>
     31 <alias from="view" to="student_index"/>
    3232 <action title="View" action_id="view" category="object"
    3333    condition_expr=""
    34     url_expr="string:${object_url}/waeup_document_view"
     34    url_expr="string:${object_url}/student_index"
    3535    visible="True">
    3636  <permission value="View"/>
  • WAeUP_SRP/trunk/profiles/default/types/StudentCourseResult.xml

    r739 r839  
    2626 <property name="storage_methods"/>
    2727 <property name="cps_is_portlet">False</property>
    28  <alias from="(Default)" to="waeup_document_view"/>
     28 <alias from="(Default)" to="student_index"/>
    2929 <alias from="create_do" to="waeup_document_create_do"/>
    3030 <alias from="created" to="student_course_result_created"/>
    31  <alias from="view" to="waeup_document_view"/>
     31 <alias from="view" to="student_index"/>
    3232 <action title="View" action_id="view" category="object"
    33     condition_expr="" url_expr="string:${object_url}/waeup_document_view"
     33    condition_expr="" url_expr="string:${object_url}/student_index"
    3434    visible="True">
    3535  <permission value="View"/>
  • WAeUP_SRP/trunk/profiles/default/types/StudentPersonal.xml

    r739 r839  
    2828 <property name="storage_methods"/>
    2929 <property name="cps_is_portlet">False</property>
    30  <alias from="(Default)" to="waeup_document_view"/>
    31  <alias from="view" to="waeup_document_view"/>
     30 <alias from="(Default)" to="student_index"/>
     31 <alias from="view" to="student_index"/>
    3232 <action title="View" action_id="view" category="object"
    3333    condition_expr=""
    34     url_expr="string:${object_url}/waeup_document_view"
     34    url_expr="string:${object_url}/student_index"
    3535    visible="True">
    3636  <permission value="View"/>
  • WAeUP_SRP/trunk/profiles/default/types/StudentPume.xml

    r805 r839  
    2626 <property name="storage_methods"/>
    2727 <property name="cps_is_portlet">False</property>
    28  <alias from="(Default)" to="waeup_document_view"/>
    29  <alias from="view" to="waeup_document_view"/>
     28 <alias from="(Default)" to="student_index"/>
     29 <alias from="view" to="student_index"/>
    3030 <action title="View" action_id="view" category="object"
    31     condition_expr="" url_expr="string:${object_url}/waeup_document_view"
     31    condition_expr="" url_expr="string:${object_url}/student_index"
    3232    visible="True">
    3333  <permission value="View"/>
  • WAeUP_SRP/trunk/skins/waeup_student/student_index.py

    r837 r839  
    2424    elif context.portal_type == 'StudentStudyLevel':
    2525        return context.study_level_view()
    26     return redirect("%s/student_view" % context.absolute_url())
     26    elif context.portal_type == 'StudentClearance':
     27        return context.clearance_view()
     28    elif context.portal_type == 'Student':
     29        return redirect("%s/student_view" % context.absolute_url())
     30    return redirect("%s/waeup_document_view" % context.absolute_url())
    2731if context.isStudent():
    2832    info = context.getStudentInfo()
    2933    student = info['student']
    30     doc = info['app_doc']
    31     state = context.getStudentInfo()['review_state']
    32     if state == 'admission_applied':
    33         return redirect("%s/application_view" % student.absolute_url())
    34     elif state in ('application_pin_entered',):
    35         return redirect("%s/application_edit" % info['app'].absolute_url())
    36     elif state in ('admitted',):
    37         return redirect("%s/admission_form" % student.absolute_url())
    38     elif state == 'clearance_pin_entered':
    39         return redirect("%s/student_view" % info['clear'].absolute_url())
    40     elif context.portal_type == 'StudentStudyLevel':
    41         return context.study_level_student_view()
     34    #doc = info['app_doc']
     35    #state = context.getStudentInfo()['review_state']
     36    #if state == 'admission_applied':
     37    #    return redirect("%s/application_view" % student.absolute_url())
     38    #elif state in ('application_pin_entered',):
     39    #    return redirect("%s/application_edit" % info['app'].absolute_url())
     40    #elif state in ('admitted',):
     41    #    return redirect("%s/admission_form" % student.absolute_url())
     42    #elif state == 'clearance_pin_entered':
     43    #    return redirect("%s/student_view" % info['clear'].absolute_url())
     44    #elif context.portal_type == 'StudentStudyLevel':
     45    #    return context.study_level_student_view()
    4246    return redirect("%s/student_view" % student.absolute_url())
Note: See TracChangeset for help on using the changeset viewer.