- Timestamp:
- 26 Jun 2015, 06:05:43 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r13089 r13103 638 638 def form_fields(self): 639 639 if self.context.is_postgrad: 640 form_fields = grok.AutoFields( 641 IPGStudentClearance).omit('clearance_locked') 642 else: 643 form_fields = grok.AutoFields( 644 IUGStudentClearance).omit('clearance_locked') 640 form_fields = grok.AutoFields(IPGStudentClearance) 641 else: 642 form_fields = grok.AutoFields(IUGStudentClearance) 645 643 if not getattr(self.context, 'officer_comment'): 646 644 form_fields = form_fields.omit('officer_comment') … … 669 667 def form_fields(self): 670 668 if self.context.is_postgrad: 671 form_fields = grok.AutoFields( 672 IPGStudentClearance).omit('clearance_locked') 673 else: 674 form_fields = grok.AutoFields( 675 IUGStudentClearance).omit('clearance_locked') 669 form_fields = grok.AutoFields(IPGStudentClearance) 670 else: 671 form_fields = grok.AutoFields(IUGStudentClearance) 676 672 if not getattr(self.context, 'officer_comment'): 677 673 form_fields = form_fields.omit('officer_comment') … … 2413 2409 if self.context.is_postgrad: 2414 2410 form_fields = grok.AutoFields(IPGStudentClearance).omit( 2415 'cl earance_locked', 'clr_code', 'officer_comment')2411 'clr_code', 'officer_comment') 2416 2412 else: 2417 2413 form_fields = grok.AutoFields(IUGStudentClearance).omit( 2418 'cl earance_locked', 'clr_code', 'officer_comment')2414 'clr_code', 'officer_comment') 2419 2415 return form_fields 2420 2416
Note: See TracChangeset for help on using the changeset viewer.