Changeset 9076 for main/kofacustom.nigeria/trunk/src/kofacustom/nigeria
- Timestamp:
- 28 Jul 2012, 11:01:38 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/applicants/browser.py
r9072 r9076 99 99 #form_fields['perm_address'].custom_widget = BytesDisplayWidget 100 100 form_fields['notice'].custom_widget = BytesDisplayWidget 101 if not getattr(self.context, 'student_id'): 102 form_fields = form_fields.omit('student_id') 103 if not getattr(self.context, 'screening_score'): 104 form_fields = form_fields.omit('screening_score') 105 if not getattr(self.context, 'screening_venue'): 106 form_fields = form_fields.omit('screening_venue') 107 if not getattr(self.context, 'screening_date'): 108 form_fields = form_fields.omit('screening_date') 101 109 return form_fields 102 110 … … 106 114 return getattr(self.context, 'result_uploaded', False) 107 115 108 @property109 def note(self):110 target = getattr(self.context.__parent__, 'prefix', None)111 if target is not None and not target.startswith('pg') \112 and not self._reduced_slip():113 return _(u'<br /><br /><br />'114 'Comfirm your exam venue 72 hours to the exam.')115 return116 #@property 117 #def note(self): 118 # target = getattr(self.context.__parent__, 'prefix', None) 119 # if target is not None and not target.startswith('pg') \ 120 # and not self._reduced_slip(): 121 # return _(u'<br /><br /><br />' 122 # 'Comfirm your exam venue 72 hours to the exam.') 123 # return 116 124 117 125 @property … … 144 152 if not getattr(self.context, 'student_id'): 145 153 form_fields = form_fields.omit('student_id') 154 if not getattr(self.context, 'screening_score'): 155 form_fields = form_fields.omit('screening_score') 156 if not getattr(self.context, 'screening_venue'): 157 form_fields = form_fields.omit('screening_venue') 158 if not getattr(self.context, 'screening_date'): 159 form_fields = form_fields.omit('screening_date') 146 160 return form_fields 147 161
Note: See TracChangeset for help on using the changeset viewer.