Ignore:
Timestamp:
18 Sep 2011, 18:58:00 (13 years ago)
Author:
Henrik Bettermann
Message:

Use getStudent instead of traversing the ancestral line with try/except.

File:
1 edited

Legend:

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

    r6792 r6794  
    5353    view.flash('Form has been saved.')
    5454    if fields_string:
    55         try:
    56             view.context.loggerInfo(ob_class, 'saved: % s' % fields_string)
    57         except AttributeError:
    58             view.context.__parent__.loggerInfo(ob_class, 'saved: % s' % fields_string)
     55        view.context.getStudent().loggerInfo(ob_class, 'saved: % s' % fields_string)
    5956    return
    6057
Note: See TracChangeset for help on using the changeset viewer.