- Timestamp:
- 12 Jul 2012, 05:50:42 (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/browser.py
r8974 r8977 349 349 grok.name('manage_base') 350 350 grok.require('waeup.manageStudent') 351 form_fields = grok.AutoFields(IStudentBase).omit('student_id' )351 form_fields = grok.AutoFields(IStudentBase).omit('student_id', 'adm_code') 352 352 grok.template('basemanagepage') 353 353 label = _('Manage base data') … … 424 424 def form_fields(self): 425 425 if self.context.is_postgrad: 426 form_fields = grok.AutoFields(IPGStudentClearance).omit('clearance_locked') 427 else: 428 form_fields = grok.AutoFields(IUGStudentClearance).omit('clearance_locked') 426 form_fields = grok.AutoFields( 427 IPGStudentClearance).omit('clearance_locked') 428 else: 429 form_fields = grok.AutoFields( 430 IUGStudentClearance).omit('clearance_locked') 429 431 return form_fields 430 432 … … 445 447 def form_fields(self): 446 448 if self.context.is_postgrad: 447 form_fields = grok.AutoFields(IPGStudentClearance).omit('clearance_locked') 448 else: 449 form_fields = grok.AutoFields(IUGStudentClearance).omit('clearance_locked') 449 form_fields = grok.AutoFields( 450 IPGStudentClearance).omit('clearance_locked') 451 else: 452 form_fields = grok.AutoFields( 453 IUGStudentClearance).omit('clearance_locked') 450 454 return form_fields 451 455 … … 488 492 def form_fields(self): 489 493 if self.context.is_postgrad: 490 form_fields = grok.AutoFields(IPGStudentClearance) 491 else: 492 form_fields = grok.AutoFields(IUGStudentClearance) 494 form_fields = grok.AutoFields(IPGStudentClearance).omit('clr_code') 495 else: 496 form_fields = grok.AutoFields(IUGStudentClearance).omit('clr_code') 493 497 return form_fields 494 498 … … 1623 1627 if self.context.is_postgrad: 1624 1628 form_fields = grok.AutoFields(IPGStudentClearance).omit( 1625 'clearance_locked' )1629 'clearance_locked', 'clr_code') 1626 1630 else: 1627 1631 form_fields = grok.AutoFields(IUGStudentClearance).omit( 1628 'clearance_locked' )1632 'clearance_locked', 'clr_code') 1629 1633 return form_fields 1630 1634 -
main/waeup.kofa/trunk/src/waeup/kofa/students/interfaces.py
r8969 r8977 200 200 title = _(u'PWD Activation Code'), 201 201 required = False, 202 readonly = True,202 readonly = False, 203 203 ) 204 204 … … 232 232 title = _(u'CLR Activation Code'), 233 233 required = False, 234 readonly = True,234 readonly = False, 235 235 ) 236 236
Note: See TracChangeset for help on using the changeset viewer.