Changeset 8472 for main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
- Timestamp:
- 20 May 2012, 09:57:09 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r8471 r8472 412 412 @property 413 413 def form_fields(self): 414 cm = getattr(self.context,'current_mode', None) 415 if cm is not None and cm.startswith('pg'): 414 if self.context.is_postgrad: 416 415 form_fields = grok.AutoFields(IPGStudentClearance).omit('clearance_locked') 417 416 else: … … 434 433 @property 435 434 def form_fields(self): 436 cm = getattr(self.context,'current_mode', None) 437 if cm is not None and cm.startswith('pg'): 435 if self.context.is_postgrad: 438 436 form_fields = grok.AutoFields(IPGStudentClearance).omit('clearance_locked') 439 437 else: … … 478 476 @property 479 477 def form_fields(self): 480 cm = getattr(self.context,'current_mode', None) 481 if cm is not None and cm.startswith('pg'): 478 if self.context.is_postgrad: 482 479 form_fields = grok.AutoFields(IPGStudentClearance) 483 480 else: … … 1621 1618 @property 1622 1619 def form_fields(self): 1623 cm = getattr(self.context,'current_mode', None) 1624 if cm is not None and cm.startswith('pg'): 1620 if self.context.is_postgrad: 1625 1621 form_fields = grok.AutoFields(IPGStudentClearance).omit('clearance_locked') 1626 1622 else:
Note: See TracChangeset for help on using the changeset viewer.