Changeset 570 for WAeUP_SRP


Ignore:
Timestamp:
27 Sep 2006, 13:57:28 (18 years ago)
Author:
joachim
Message:

trial to make courses index_view work

Location:
WAeUP_SRP/trunk/skins/waeup_academics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_academics/courses_index_view.pt

    r563 r570  
    1313      </h3>
    1414      <div tal:condition="python:0" tal:content="info/container_path"/>
    15       <div tal:condition="python:0" tal:content="info/dep_id"/>
     15      <div tal:condition="python:1" tal:content="info/dep_id"/>
    1616    </metal:block>
    1717    <metal:main fill-slot="main" tal:condition="python: 1">
  • WAeUP_SRP/trunk/skins/waeup_academics/getCoursesInfo.py

    r566 r570  
    2121info = {}
    2222member_id = str(member)
    23 dep_id = request.get('PATH_TRANSLATED').split('/')[5]
     23dep_id = request.get('PATH_TRANSLATED').split('/')[-2]
    2424roles = member.getRoles()
    2525info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles
Note: See TracChangeset for help on using the changeset viewer.