Ignore:
Timestamp:
25 Sep 2007, 09:24:06 (17 years ago)
Author:
joachim
Message:

fix for #1 fceokene

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_academics/getDepartmentsInfo.py

    r913 r2273  
    3232for r in res:
    3333    row = {}
    34     ro = r.getObject()
    35     rd = ro.getContent()
    36     row['id'] = r.getId
    37     row['title'] = rd.LongTitle()
    38     row['url'] = ro.absolute_url()
    39     row['is_editable'] = mtool.checkPermission('Modify portal content', ro)
    40     items.append(row)
     34    try:
     35        ro = r.getObject()
     36        rd = ro.getContent()
     37        row['id'] = r.getId
     38        row['title'] = rd.LongTitle()
     39        row['url'] = ro.absolute_url()
     40        row['is_editable'] = mtool.checkPermission('Modify portal content', ro)
     41        items.append(row)
     42    except AttributeError:
     43        continue
     44       
    4145info['items'] = items
    4246return info
Note: See TracChangeset for help on using the changeset viewer.