Ignore:
Timestamp:
25 Sep 2013, 06:46:53 (11 years ago)
Author:
Henrik Bettermann
Message:

Convert longtitle() into property attribute.

File:
1 edited

Legend:

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

    r10578 r10650  
    142142            f_label = Paragraph(f_label, ENTRY1_STYLE)
    143143            f_text = formatted_text(
    144                 studentview.context['studycourse'].certificate.longtitle())
     144                studentview.context['studycourse'].certificate.longtitle)
    145145            f_text = Paragraph(f_text, ENTRY1_STYLE)
    146146            data_right.append([f_label,f_text])
     
    150150            f_text = formatted_text(
    151151                studentview.context[
    152                 'studycourse'].certificate.__parent__.__parent__.longtitle(),
     152                'studycourse'].certificate.__parent__.__parent__.longtitle,
    153153                )
    154154            f_text = Paragraph(f_text, ENTRY1_STYLE)
     
    159159            f_text = formatted_text(
    160160                studentview.context[
    161                 'studycourse'].certificate.__parent__.__parent__.__parent__.longtitle(),
     161                'studycourse'].certificate.__parent__.__parent__.__parent__.longtitle,
    162162                )
    163163            f_text = Paragraph(f_text, ENTRY1_STYLE)
     
    727727        f_label = trans(_('Course of Study:'), portal_language)
    728728        f_label = Paragraph(f_label, ENTRY1_STYLE)
    729         f_text = formatted_text(view.context.certificate.longtitle())
     729        f_text = formatted_text(view.context.certificate.longtitle)
    730730        f_text = Paragraph(f_text, ENTRY1_STYLE)
    731731        contextdata.append([f_label,f_text])
     
    734734        f_label = Paragraph(f_label, ENTRY1_STYLE)
    735735        f_text = formatted_text(
    736             view.context.certificate.__parent__.__parent__.__parent__.longtitle())
     736            view.context.certificate.__parent__.__parent__.__parent__.longtitle)
    737737        f_text = Paragraph(f_text, ENTRY1_STYLE)
    738738        contextdata.append([f_label,f_text])
     
    741741        f_label = Paragraph(f_label, ENTRY1_STYLE)
    742742        f_text = formatted_text(
    743             view.context.certificate.__parent__.__parent__.longtitle())
     743            view.context.certificate.__parent__.__parent__.longtitle)
    744744        f_text = Paragraph(f_text, ENTRY1_STYLE)
    745745        contextdata.append([f_label,f_text])
Note: See TracChangeset for help on using the changeset viewer.