- Timestamp:
- 18 Feb 2016, 11:52:18 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r13610 r13711 414 414 grok.template('basepage') 415 415 form_fields = grok.AutoFields(IStudentBase).omit( 416 'password', 'suspended', 'suspended_comment' )416 'password', 'suspended', 'suspended_comment', 'flash_notice') 417 417 pnav = 4 418 418 … … 430 430 return _('set') 431 431 return _('unset') 432 433 def update(self): 434 if self.context.flash_notice: 435 self.flash(self.context.flash_notice, type="warning") 436 super(StudentBaseDisplayFormPage, self).update() 437 return 432 438 433 439 class StudentBasePDFFormPage(KofaDisplayFormPage): … … 492 498 prefix = 'form' 493 499 494 omit_fields = ('date_of_birth', 'current_level' )500 omit_fields = ('date_of_birth', 'current_level', 'flash_notice') 495 501 496 502 form_fields = grok.AutoFields(IStudentBase).select('student_id', 'reg_number') … … 664 670 'suspended', 'phone', 665 671 'adm_code', 'suspended_comment', 666 'date_of_birth', 'current_level') 672 'date_of_birth', 'current_level', 673 'flash_notice') 667 674 668 675 @property … … 1206 1213 'department', 'faculty', 'current_mode', 'entry_session', 'certificate', 1207 1214 'password', 'suspended', 'phone', 'email', 1208 'adm_code', 'suspended_comment', 'current_level' )1215 'adm_code', 'suspended_comment', 'current_level', 'flash_notice') 1209 1216 1210 1217 def update(self): … … 1356 1363 omit_fields = ( 1357 1364 'password', 'suspended', 'phone', 'date_of_birth', 1358 'adm_code', 'sex', 'suspended_comment', 'current_level') 1365 'adm_code', 'sex', 'suspended_comment', 'current_level', 1366 'flash_notice') 1359 1367 1360 1368 @property … … 1919 1927 omit_fields = ( 1920 1928 'password', 'suspended', 'phone', 'date_of_birth', 1921 'adm_code', 'sex', 'suspended_comment', 'current_level') 1929 'adm_code', 'sex', 'suspended_comment', 'current_level', 1930 'flash_notice') 1922 1931 1923 1932 @property … … 2203 2212 omit_fields = ( 2204 2213 'password', 'suspended', 'phone', 'adm_code', 2205 'suspended_comment', 'date_of_birth', 'current_level') 2214 'suspended_comment', 'date_of_birth', 'current_level', 2215 'flash_notice') 2206 2216 2207 2217 @property
Note: See TracChangeset for help on using the changeset viewer.