- Timestamp:
- 8 Sep 2021, 07:15:07 (3 years ago)
- Location:
- main/waeup.kofa/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk
- Property svn:ignore
-
old new 21 21 faculties.csv 22 22 .mr.developer.cfg 23 dist
-
- Property svn:ignore
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r16520 r16609 2924 2924 2925 2925 class StudentFilesUploadPage(KofaPage): 2926 """ View to upload files by student 2926 """ View to upload passport picture by student. The class name 2927 is historical. The page is only used for the student's portrait. 2927 2928 """ 2928 2929 grok.context(IStudent) … … 2940 2941 return 2941 2942 super(StudentFilesUploadPage, self).update() 2943 return 2944 2945 class StudentSignatureUploadPage(KofaPage): 2946 """ View to upload scanned signature by student. Not active 2947 in base package. 2948 """ 2949 grok.context(IStudent) 2950 grok.name('change_signature') 2951 grok.require('waeup.uploadStudentFile') 2952 grok.template('filesuploadpage') 2953 label = _('Upload signature') 2954 pnav = 4 2955 2956 def update(self): 2957 SIGNATURE_CHANGE_STATES = getUtility(IStudentsUtils).SIGNATURE_CHANGE_STATES 2958 if self.context.student.state not in SIGNATURE_CHANGE_STATES: 2959 emit_lock_message(self, 2960 _('This form is locked. You are in the wrong state.')) 2961 return 2962 super(StudentSignatureUploadPage, self).update() 2942 2963 return 2943 2964
Note: See TracChangeset for help on using the changeset viewer.