Ignore:
Timestamp:
26 Nov 2011, 06:49:16 (13 years ago)
Author:
Henrik Bettermann
Message:

academics: Show students in departments.

students: Search for students in department.

File:
1 edited

Legend:

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

    r7191 r7205  
    7070    if changed_fields:
    7171        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()))
    7276    fields_string = ' + '.join(changed_fields)
    73     #view.context._p_changed = True
    7477    view.flash('Form has been saved.')
    7578    if fields_string:
     
    599602    @property
    600603    def department(self):
    601         if self.context.certificate:
     604        if self.context.certificate is not None:
    602605            return self.context.certificate.__parent__.__parent__
    603606        return
     
    605608    @property
    606609    def faculty(self):
    607         if self.context.certificate:
     610        if self.context.certificate is not None:
    608611            return self.context.certificate.__parent__.__parent__.__parent__
    609612        return
Note: See TracChangeset for help on using the changeset viewer.