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

backward compatibility fix

File:
1 edited

Legend:

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

    r573 r577  
    3333    ld = l.getContent()
    3434    row['id'] = l.getId()
    35     row['title'] = ld.Title()
     35    if hasattr(ld,'Title'):
     36        row['title'] = ld.Title()
     37    else:
     38        row['title'] = getattr(ld,'title','no title')
    3639    row['url'] = l.absolute_url()
    3740    items.append(row)
Note: See TracChangeset for help on using the changeset viewer.