Ignore:
Timestamp:
18 Nov 2015, 10:18:17 (9 years ago)
Author:
Henrik Bettermann
Message:

Avoid BeakerException? error.

File:
1 edited

Legend:

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

    r13445 r13476  
    314314            message = ', '.join(switched)
    315315            m_translated = ', '.join(switched_translated)
    316             self.flash(_('Successfully switched beds: ${a}',
    317                 mapping = {'a':m_translated}))
     316            if len(switched) > 50:
     317                self.flash(_('Successfully switched ${a} beds.',
     318                    mapping = {'a':len(switched)}))
     319            else:
     320                self.flash(_('Successfully switched beds: ${a}',
     321                    mapping = {'a':m_translated}))
    318322            self.context.writeLogMessage(self, 'switched: %s' % message)
    319323            self.redirect(self.url(self.context, '@@manage')+'#tab2')
Note: See TracChangeset for help on using the changeset viewer.