Ignore:
Timestamp:
22 Nov 2012, 20:28:22 (12 years ago)
Author:
Henrik Bettermann
Message:

Ease customization of displaying suspended_comment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py

    r9705 r9707  
    209209    login_button = label
    210210
     211    def _comment(self, student):
     212        return getattr(student, 'suspended_comment', None)
     213
    211214    def update(self, SUBMIT=None, camefrom=None):
    212215        self.camefrom = camefrom
     
    259262                        return
    260263                    # Now we know that the student is suspended.
    261                     comment = getattr(student, 'suspended_comment', None)
     264                    comment = self._comment(student)
    262265                    if comment:
    263266                        self.flash(comment)
     
    886889    label = _(u'Upload portal data as CSV file')
    887890    pnav = 0
    888     max_files = 10
     891    max_files = 20
    889892    upload_button =_(u'Upload')
    890893    cancel_button =_(u'Cancel')
Note: See TracChangeset for help on using the changeset viewer.