Ignore:
Timestamp:
31 Oct 2012, 16:30:02 (12 years ago)
Author:
Henrik Bettermann
Message:

Rename clearance_comment to officer_comment. That's more appropriate since the comment can also be used by other officers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r9484 r9486  
    587587            form_fields = grok.AutoFields(
    588588                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 = BytesDisplayWidget
     589        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
    593593        return form_fields
    594594
     
    615615            form_fields = grok.AutoFields(
    616616                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')
    619619        return form_fields
    620620
     
    709709    grok.require('waeup.clearStudent')
    710710    form_fields = grok.AutoFields(
    711         IUGStudentClearance).select('clearance_comment')
     711        IUGStudentClearance).select('officer_comment')
    712712
    713713    @action(_('Save comment and reject clearance now'), style='primary')
     
    726726            return
    727727        self.applyData(self.context, **data)
    728         comment = data['clearance_comment']
     728        comment = data['officer_comment']
    729729        self.context.writeLogMessage(
    730730            self, 'comment: %s' % comment.replace('\n', '<br>'))
     
    19531953        if self.context.is_postgrad:
    19541954            form_fields = grok.AutoFields(IPGStudentClearance).omit(
    1955                 'clearance_locked', 'clr_code', 'clearance_comment')
     1955                'clearance_locked', 'clr_code', 'officer_comment')
    19561956        else:
    19571957            form_fields = grok.AutoFields(IUGStudentClearance).omit(
    1958                 'clearance_locked', 'clr_code', 'clearance_comment')
     1958                'clearance_locked', 'clr_code', 'officer_comment')
    19591959        return form_fields
    19601960
Note: See TracChangeset for help on using the changeset viewer.