Changeset 9248
- Timestamp:
- 27 Sep 2012, 21:34:37 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/browser.py
r9144 r9248 96 96 @property 97 97 def form_fields(self): 98 cm = getattr(self.context,'current_mode', None) 99 if cm is not None and cm.startswith('pg'): 98 if self.context.is_postgrad: 100 99 form_fields = grok.AutoFields( 101 100 INigeriaPGStudentClearance).omit('clearance_locked') … … 111 110 @property 112 111 def form_fields(self): 113 cm = getattr(self.context,'current_mode', None) 114 if cm is not None and cm.startswith('pg'): 112 if self.context.is_postgrad: 115 113 form_fields = grok.AutoFields( 116 114 INigeriaPGStudentClearance).omit('clearance_locked') … … 126 124 @property 127 125 def form_fields(self): 128 cm = getattr(self.context,'current_mode', None) 129 if cm is not None and cm.startswith('pg'): 126 if self.context.is_postgrad: 130 127 form_fields = grok.AutoFields(INigeriaPGStudentClearance) 131 128 else: … … 139 136 @property 140 137 def form_fields(self): 141 cm = getattr(self.context,'current_mode', None) 142 if cm is not None and cm.startswith('pg'): 138 if self.context.is_postgrad: 143 139 form_fields = grok.AutoFields(INigeriaPGStudentClearance).omit( 144 140 'clearance_locked', 'nysc_location')
Note: See TracChangeset for help on using the changeset viewer.