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

Convert longtitle() into property attribute.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
5 edited

Legend:

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

    r10647 r10650  
    29302930
    29312931    def label(self):
    2932         return 'Students in %s' % self.context.longtitle()
     2932        return 'Students in %s' % self.context.longtitle
    29332933
    29342934    def _set_session_values(self):
     
    29962996
    29972997    def label(self):
    2998         return 'Students studying %s' % self.context.longtitle()
     2998        return 'Students studying %s' % self.context.longtitle
    29992999
    30003000    def _searchCatalog(self, session, level):
     
    30243024
    30253025    def label(self):
    3026         return 'Students registered for %s' % self.context.longtitle()
     3026        return 'Students registered for %s' % self.context.longtitle
    30273027
    30283028    def _searchCatalog(self, session, level):
  • main/waeup.kofa/trunk/src/waeup/kofa/students/export.py

    r10296 r10650  
    476476            value = certificate.title
    477477        if name == 'department' and certificate is not None:
    478             value = certificate.__parent__.__parent__.longtitle()
     478            value = certificate.__parent__.__parent__.longtitle
    479479        if name == 'faculty' and certificate is not None:
    480             value = certificate.__parent__.__parent__.__parent__.longtitle()
     480            value = certificate.__parent__.__parent__.__parent__.longtitle
    481481        if name == 'passport_path' and certificate is not None:
    482482            file_id = IFileStoreNameChooser(context).chooseName(attr='passport.jpg')
  • main/waeup.kofa/trunk/src/waeup/kofa/students/reports/level_report.py

    r10617 r10650  
    152152        self.faccode = faccode
    153153        self.depcode = depcode
    154         self.factitle = site['faculties'][faccode].longtitle()
    155         self.deptitle = site['faculties'][faccode][depcode].longtitle()
     154        self.factitle = site['faculties'][faccode].longtitle
     155        self.deptitle = site['faculties'][faccode][depcode].longtitle
    156156        self.author = author
    157157        self.creation_dt_string = self.creation_dt.astimezone(
     
    272272            for dep in fac.values():
    273273                faccode_depcodes.append(
    274                     ('%s (%s)' %(dep.longtitle(), fac.longtitle()),
     274                    ('%s (%s)' %(dep.longtitle, fac.longtitle),
    275275                     '%s_%s' %(fac.code, dep.code)))
    276276        self.faccode_depcodes = sorted(
  • main/waeup.kofa/trunk/src/waeup/kofa/students/reports/session_results_presentation.py

    r10621 r10650  
    130130        self.faccode = faccode
    131131        self.depcode = depcode
    132         self.factitle = site['faculties'][faccode].longtitle()
    133         self.deptitle = site['faculties'][faccode][depcode].longtitle()
     132        self.factitle = site['faculties'][faccode].longtitle
     133        self.deptitle = site['faculties'][faccode][depcode].longtitle
    134134        self.author = author
    135135        self.creation_dt_string = self.creation_dt.astimezone(
  • 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.