Changeset 10650 for main/waeup.kofa/trunk/src
- Timestamp:
- 25 Sep 2013, 06:46:53 (11 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/pdf.py
r10596 r10650 93 93 '__parent__', None) 94 94 faculty = getattr(dept, '__parent__', None) 95 return [x is not None and x.longtitle ()or x for x in dept, faculty]95 return [x is not None and x.longtitle or x for x in dept, faculty] 96 96 97 97 def _addLoginInformation(self): -
main/waeup.kofa/trunk/src/waeup/kofa/browser/breadcrumbs.py
r9818 r10650 182 182 @property 183 183 def title(self): 184 return self.context.longtitle ()184 return self.context.longtitle 185 185 186 186 class DepartmentBreadcrumb(FacultyBreadcrumb): … … 217 217 @property 218 218 def title(self): 219 return self.context.longtitle ()219 return self.context.longtitle 220 220 221 221 def getBreadcrumb(obj, viewname=None): -
main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
r10649 r10650 1865 1865 @property 1866 1866 def label(self): 1867 return _('Find students in ') + ('%s' % self.context.longtitle ())1867 return _('Find students in ') + ('%s' % self.context.longtitle) 1868 1868 1869 1869 def _find_students(self,query=None, searchtype=None, view=None): … … 2330 2330 @property 2331 2331 def label(self): 2332 return '%s' % (self.context.longtitle ())2332 return '%s' % (self.context.longtitle) 2333 2333 2334 2334 @property -
main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/certificatecoursepage.pt
r9320 r10650 18 18 <td i18n:translate="">Provided by:</td> 19 19 <td> 20 <span tal:content="python: context.course.__parent__.__parent__.longtitle ()">DEPARTMENT</span>20 <span tal:content="python: context.course.__parent__.__parent__.longtitle">DEPARTMENT</span> 21 21 <br /> 22 <span tal:content="python: context.course.__parent__.__parent__.__parent__.longtitle ()">FACULTY</span>22 <span tal:content="python: context.course.__parent__.__parent__.__parent__.longtitle">FACULTY</span> 23 23 </td> 24 24 </tr> -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r10647 r10650 2930 2930 2931 2931 def label(self): 2932 return 'Students in %s' % self.context.longtitle ()2932 return 'Students in %s' % self.context.longtitle 2933 2933 2934 2934 def _set_session_values(self): … … 2996 2996 2997 2997 def label(self): 2998 return 'Students studying %s' % self.context.longtitle ()2998 return 'Students studying %s' % self.context.longtitle 2999 2999 3000 3000 def _searchCatalog(self, session, level): … … 3024 3024 3025 3025 def label(self): 3026 return 'Students registered for %s' % self.context.longtitle ()3026 return 'Students registered for %s' % self.context.longtitle 3027 3027 3028 3028 def _searchCatalog(self, session, level): -
main/waeup.kofa/trunk/src/waeup/kofa/students/export.py
r10296 r10650 476 476 value = certificate.title 477 477 if name == 'department' and certificate is not None: 478 value = certificate.__parent__.__parent__.longtitle ()478 value = certificate.__parent__.__parent__.longtitle 479 479 if name == 'faculty' and certificate is not None: 480 value = certificate.__parent__.__parent__.__parent__.longtitle ()480 value = certificate.__parent__.__parent__.__parent__.longtitle 481 481 if name == 'passport_path' and certificate is not None: 482 482 file_id = IFileStoreNameChooser(context).chooseName(attr='passport.jpg') -
main/waeup.kofa/trunk/src/waeup/kofa/students/reports/level_report.py
r10617 r10650 152 152 self.faccode = faccode 153 153 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 156 156 self.author = author 157 157 self.creation_dt_string = self.creation_dt.astimezone( … … 272 272 for dep in fac.values(): 273 273 faccode_depcodes.append( 274 ('%s (%s)' %(dep.longtitle (), fac.longtitle()),274 ('%s (%s)' %(dep.longtitle, fac.longtitle), 275 275 '%s_%s' %(fac.code, dep.code))) 276 276 self.faccode_depcodes = sorted( -
main/waeup.kofa/trunk/src/waeup/kofa/students/reports/session_results_presentation.py
r10621 r10650 130 130 self.faccode = faccode 131 131 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 134 134 self.author = author 135 135 self.creation_dt_string = self.creation_dt.astimezone( -
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r10578 r10650 142 142 f_label = Paragraph(f_label, ENTRY1_STYLE) 143 143 f_text = formatted_text( 144 studentview.context['studycourse'].certificate.longtitle ())144 studentview.context['studycourse'].certificate.longtitle) 145 145 f_text = Paragraph(f_text, ENTRY1_STYLE) 146 146 data_right.append([f_label,f_text]) … … 150 150 f_text = formatted_text( 151 151 studentview.context[ 152 'studycourse'].certificate.__parent__.__parent__.longtitle (),152 'studycourse'].certificate.__parent__.__parent__.longtitle, 153 153 ) 154 154 f_text = Paragraph(f_text, ENTRY1_STYLE) … … 159 159 f_text = formatted_text( 160 160 studentview.context[ 161 'studycourse'].certificate.__parent__.__parent__.__parent__.longtitle (),161 'studycourse'].certificate.__parent__.__parent__.__parent__.longtitle, 162 162 ) 163 163 f_text = Paragraph(f_text, ENTRY1_STYLE) … … 727 727 f_label = trans(_('Course of Study:'), portal_language) 728 728 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) 730 730 f_text = Paragraph(f_text, ENTRY1_STYLE) 731 731 contextdata.append([f_label,f_text]) … … 734 734 f_label = Paragraph(f_label, ENTRY1_STYLE) 735 735 f_text = formatted_text( 736 view.context.certificate.__parent__.__parent__.__parent__.longtitle ())736 view.context.certificate.__parent__.__parent__.__parent__.longtitle) 737 737 f_text = Paragraph(f_text, ENTRY1_STYLE) 738 738 contextdata.append([f_label,f_text]) … … 741 741 f_label = Paragraph(f_label, ENTRY1_STYLE) 742 742 f_text = formatted_text( 743 view.context.certificate.__parent__.__parent__.longtitle ())743 view.context.certificate.__parent__.__parent__.longtitle) 744 744 f_text = Paragraph(f_text, ENTRY1_STYLE) 745 745 contextdata.append([f_label,f_text]) -
main/waeup.kofa/trunk/src/waeup/kofa/university/certificate.py
r10530 r10650 89 89 return None 90 90 91 @property 91 92 def longtitle(self): 92 93 return "%s (%s)" % (self.title,self.code) … … 161 162 return self.course.code 162 163 164 @property 163 165 def longtitle(self): 164 166 return "%s in level %s" % (self.course.code, -
main/waeup.kofa/trunk/src/waeup/kofa/university/course.py
r9843 r10650 67 67 return None 68 68 69 @property 69 70 def longtitle(self): 70 71 return "%s (%s)" % (self.title,self.code) -
main/waeup.kofa/trunk/src/waeup/kofa/university/department.py
r10635 r10650 89 89 return None 90 90 91 @property 91 92 def longtitle(self): 92 93 return longtitle(self) -
main/waeup.kofa/trunk/src/waeup/kofa/university/faculty.py
r10639 r10650 74 74 self[department.code] = department 75 75 76 @property 76 77 def longtitle(self): 77 78 return longtitle(self) -
main/waeup.kofa/trunk/src/waeup/kofa/university/interfaces.py
r10642 r10650 55 55 ) 56 56 57 def longtitle():58 """59 Returns the long title of a faculty.60 """61 57 62 58 class IFacultyAdd(IFaculty): … … 114 110 certificates = Attribute("A container for certificates.") 115 111 116 def longtitle():117 """118 Returns the long title of a department.119 """120 112 121 113 class IDepartmentAdd(IDepartment): … … 185 177 ) 186 178 187 def longtitle():188 """189 Returns the long title of a course.190 """191 179 192 180 class ICourseAdd(ICourse): … … 293 281 required = False, 294 282 ) 295 296 def longtitle():297 """298 Returns the long title of a certificate.299 """300 283 301 284 @invariant … … 364 347 """ 365 348 366 def longtitle():367 """368 Returns the long title of a certificatecourse.369 """370 371 372 349 class ICertificateCourseAdd(ICertificateCourse): 373 350 """A certificatecourse is referring a course and
Note: See TracChangeset for help on using the changeset viewer.