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/getCertificatesInfo.py

    r913 r2273  
    3737for r in res:
    3838    row = {}
    39     ro = r.getObject()
    40     rd = ro.getContent()
    41     row['id'] = r.getId
    42     row['title'] = rd.Title()
    43     row['url'] = ro.absolute_url()
    44     row['review_state'] = wf.getInfoFor(ro,'review_state','None')
    45     row['is_editable'] = mtool.checkPermission('Modify portal content', ro)
    46     items.append(row)
     39    try:
     40        ro = r.getObject()
     41        rd = ro.getContent()
     42        row['id'] = r.getId
     43        row['title'] = rd.Title()
     44        row['url'] = ro.absolute_url()
     45        row['review_state'] = wf.getInfoFor(ro,'review_state','None')
     46        row['is_editable'] = mtool.checkPermission('Modify portal content', ro)
     47        items.append(row)
     48    except AttributeError:
     49        continue
    4750info['items'] = items
    4851return info
Note: See TracChangeset for help on using the changeset viewer.