Ignore:
Timestamp:
27 Sep 2006, 08:52:17 (18 years ago)
Author:
joachim
Message:

fix index-error hopefully

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

Legend:

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

    r563 r566  
    2828info['choosen_ids'] = request.get('ids',[])
    2929info['doc'] = context.getContent()
    30 brain = context.portal_catalog(meta_type="Department",id = dep_id)[-1]
     30res = context.portal_catalog(meta_type="Department",id = dep_id)
     31info['courses'] = []
     32if not res:
     33    return info
     34brain = res[-1]
    3135cp = brain.getPath()
    3236info['container_path'] = cp
  • WAeUP_SRP/trunk/skins/waeup_academics/getLevelInfo.py

    r565 r566  
    5353    else:
    5454        second.append(row)
     55first.sort()
     56second.sort()
    5557info['first'] = first
    5658info['second'] = second
  • WAeUP_SRP/trunk/skins/waeup_academics/level_index_view.pt

    r556 r566  
    3838              <td><a href="view" tal:attributes="href string:${row/url}">
    3939                  <strong tal:content="row/title" /></a> </td>
     40              <td tal:content="row/id"></td>
    4041              <td tal:content="python: test(row['core'],'core','elective')"></td>
    4142            </tr>
Note: See TracChangeset for help on using the changeset viewer.