Changeset 7205 for main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py
- Timestamp:
- 26 Nov 2011, 06:49:16 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py
r7191 r7205 70 70 if changed_fields: 71 71 changed_fields = reduce(lambda x,y: x+y, changed_fields.values()) 72 # Inform catalog if certificate has changed 73 # (applyData does this only for the context) 74 if 'certificate' in changed_fields: 75 notify(grok.ObjectModifiedEvent(view.context.getStudent())) 72 76 fields_string = ' + '.join(changed_fields) 73 #view.context._p_changed = True74 77 view.flash('Form has been saved.') 75 78 if fields_string: … … 599 602 @property 600 603 def department(self): 601 if self.context.certificate :604 if self.context.certificate is not None: 602 605 return self.context.certificate.__parent__.__parent__ 603 606 return … … 605 608 @property 606 609 def faculty(self): 607 if self.context.certificate :610 if self.context.certificate is not None: 608 611 return self.context.certificate.__parent__.__parent__.__parent__ 609 612 return
Note: See TracChangeset for help on using the changeset viewer.