Ignore:
Timestamp:
24 Nov 2015, 15:13:31 (9 years ago)
Author:
Henrik Bettermann
Message:

Reduce cookie length.

File:
1 edited

Legend:

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

    r13484 r13494  
    299299        message = '%d empty beds removed, %d beds added, %d occupied beds modified (%s)' % (
    300300            removed, added, modified, modified_beds)
    301         flash_message = _(
    302             '${a} empty beds removed, ${b} beds added, '
    303             + '${c} occupied beds modified (${d})',
    304             mapping = {'a':removed, 'b':added, 'c':modified, 'd':modified_beds})
     301        if modified > 50:
     302            flash_message = _(
     303                '${a} empty beds removed, ${b} beds added, '
     304                + '${c} occupied beds modified',
     305                mapping = {'a':removed, 'b':added, 'c':modified})
     306        else:
     307            flash_message = _(
     308                '${a} empty beds removed, ${b} beds added, '
     309                + '${c} occupied beds modified (${d})',
     310                mapping = {'a':removed, 'b':added, 'c':modified, 'd':modified_beds})
    305311        self.flash(flash_message)
    306312        self.context.writeLogMessage(self, message)
Note: See TracChangeset for help on using the changeset viewer.