Changeset 10021 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 13 Mar 2013, 06:16:28 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
r10020 r10021 669 669 } 670 670 671 SKIP_UPLOAD_VIEWLETS = () 672 671 673 #: A prefix used when generating new student ids. Each student id will 672 674 #: start with this string. The default is 'K' for ``Kofa``. -
main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py
r9938 r10021 49 49 IStudentsContainer, IStudent, IStudentStudyCourse, IStudentAccommodation, 50 50 IStudentStudyLevel, ICourseTicket, IStudentOnlinePayment, IBedTicket, 51 IStudentPaymentsContainer, 51 IStudentPaymentsContainer, IStudentsUtils 52 52 ) 53 53 from waeup.kofa.utils.helpers import get_fileformat … … 803 803 upload_button =_('Upload new file') 804 804 delete_button = _('Delete attachment') 805 show_viewlet = True 805 806 @property 807 def show_viewlet(self): 808 students_utils = getUtility(IStudentsUtils) 809 if self.__name__ in students_utils.SKIP_UPLOAD_VIEWLETS: 810 return False 811 return True 806 812 807 813 @property
Note: See TracChangeset for help on using the changeset viewer.