Changeset 9486 for main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
- Timestamp:
- 31 Oct 2012, 16:30:02 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r9484 r9486 587 587 form_fields = grok.AutoFields( 588 588 IUGStudentClearance).omit('clearance_locked') 589 if not getattr(self.context, ' clearance_comment'):590 form_fields = form_fields.omit(' clearance_comment')591 else: 592 form_fields[' clearance_comment'].custom_widget = BytesDisplayWidget589 if not getattr(self.context, 'officer_comment'): 590 form_fields = form_fields.omit('officer_comment') 591 else: 592 form_fields['officer_comment'].custom_widget = BytesDisplayWidget 593 593 return form_fields 594 594 … … 615 615 form_fields = grok.AutoFields( 616 616 IUGStudentClearance).omit('clearance_locked') 617 if not getattr(self.context, ' clearance_comment'):618 form_fields = form_fields.omit(' clearance_comment')617 if not getattr(self.context, 'officer_comment'): 618 form_fields = form_fields.omit('officer_comment') 619 619 return form_fields 620 620 … … 709 709 grok.require('waeup.clearStudent') 710 710 form_fields = grok.AutoFields( 711 IUGStudentClearance).select(' clearance_comment')711 IUGStudentClearance).select('officer_comment') 712 712 713 713 @action(_('Save comment and reject clearance now'), style='primary') … … 726 726 return 727 727 self.applyData(self.context, **data) 728 comment = data[' clearance_comment']728 comment = data['officer_comment'] 729 729 self.context.writeLogMessage( 730 730 self, 'comment: %s' % comment.replace('\n', '<br>')) … … 1953 1953 if self.context.is_postgrad: 1954 1954 form_fields = grok.AutoFields(IPGStudentClearance).omit( 1955 'clearance_locked', 'clr_code', ' clearance_comment')1955 'clearance_locked', 'clr_code', 'officer_comment') 1956 1956 else: 1957 1957 form_fields = grok.AutoFields(IUGStudentClearance).omit( 1958 'clearance_locked', 'clr_code', ' clearance_comment')1958 'clearance_locked', 'clr_code', 'officer_comment') 1959 1959 return form_fields 1960 1960
Note: See TracChangeset for help on using the changeset viewer.