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

fix for #1 fceokene

Location:
WAeUP_SRP/base/skins/waeup_academics
Files:
4 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
  • WAeUP_SRP/base/skins/waeup_academics/getCoursesCertificatesInfo.py

    r1434 r2273  
    3939for r in res:
    4040    row = {}
    41     ro = r.getObject()
    42     rd = ro.getContent()
    43     row['id'] = r.getId
    44     row['title'] = rd.Title()
    45     row['url'] = ro.absolute_url()
    46     items.append(row)
     41    try:
     42        ro = r.getObject()
     43        rd = ro.getContent()
     44        row['id'] = r.getId
     45        row['title'] = rd.Title()
     46        row['url'] = ro.absolute_url()
     47        items.append(row)
     48    except AttributeError:
     49        continue
    4750info['certificates'] = items
    4851return info
  • 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
  • WAeUP_SRP/base/skins/waeup_academics/getFacultiesInfo.py

    r2028 r2273  
    3333for f in facs:
    3434    row = {}
    35     fo = f.getObject()
    36     fd = fo.getContent()
    37     row['id'] = fo.getId()
    38     row['title'] = fd.LongTitle()
    39     row['url'] = fo.absolute_url()
    40     row['is_editable'] = mtool.checkPermission('Modify portal content', fo)
    41     items.append(row)
     35    try:
     36        fo = f.getObject()
     37        fd = fo.getContent()
     38        row['id'] = fo.getId()
     39        row['title'] = fd.LongTitle()
     40        row['url'] = fo.absolute_url()
     41        row['is_editable'] = mtool.checkPermission('Modify portal content', fo)
     42        items.append(row)
     43    except AttributeError:
     44        continue
     45           
    4246items.sort(cmp_id)
    4347info['items'] = items
Note: See TracChangeset for help on using the changeset viewer.