Changeset 739 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
21 Oct 2006, 13:37:37 (18 years ago)
Author:
Henrik Bettermann
Message:

academics_document_view.pt renamed and moved

Location:
WAeUP_SRP/trunk/skins
Files:
1 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_academics/academics_index.py

    r683 r739  
    2929        return context.courses_view()
    3030    elif context.portal_type == 'CertificatesFolder':
    31         return context.certificates_view()       
     31        return context.certificates_view()
    3232    elif context.portal_type == 'Certificate':
    3333        return context.certificate_view()
     
    3535        return context.level_view()
    3636    elif context.portal_type in ('CertificateCourse','Course'):
    37         return context.academics_document_view()
     37        return context.waeup_document_view()
    3838    return redirect("%s/srp_manager_view" % context.portal_url())
    3939
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentInfo.py

    r735 r739  
    2525member_id = str(member)
    2626if student is None:
    27     if context.isManager():
     27    if context.isManager() and 'students' in context.getPhysicalPath():
    2828        if context.portal_type == 'Student':
    2929            student_id = context.getId()
     
    3131            student_id = context.aq_parent.getId()
    3232        elif context.aq_parent.aq_parent.portal_type == 'Student':
    33             student_id = context.aq_parent.aq_parent.getId()   
     33            student_id = context.aq_parent.aq_parent.getId()
    3434        elif context.aq_parent.aq_parent.aq_parent.portal_type == 'Student':
    35             student_id = context.aq_parent.aq_parent.aq_parent.getId()   
     35            student_id = context.aq_parent.aq_parent.aq_parent.getId()
    3636        else:
    37             student_id = member_id           
     37            student_id = member_id
    3838    else:
    3939        student_id = member_id
     
    8787    row['type'] = so.portal_type
    8888    row['is_editable'] = mtool.checkPermission('Modify portal content', soo)
    89     sv_link = s_view_links.get(so.portal_type,None) or "academics_document_view"
     89    sv_link = s_view_links.get(so.portal_type,None) or "waeup_document_view"
    9090    row['s_view_link'] = "%s/%s" % (soo.absolute_url(),sv_link)
    9191    se_link = s_edit_links.get(so.portal_type,None)
Note: See TracChangeset for help on using the changeset viewer.