Changeset 9450


Ignore:
Timestamp:
29 Oct 2012, 06:54:51 (12 years ago)
Author:
Henrik Bettermann
Message:

hasattr returns always True for certcode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r9429 r9450  
    135135        data_right.append([f_label,f_text])
    136136
    137     if hasattr(studentview.context, 'certcode'):
     137    if getattr(studentview.context, 'certcode'):
    138138        f_label = formatted_label(size=12) % _('Study Course')
    139139        f_label = Paragraph(f_label, style["Normal"])
Note: See TracChangeset for help on using the changeset viewer.