Changeset 12802 for main/waeup.ikoba


Ignore:
Timestamp:
20 Mar 2015, 18:04:32 (10 years ago)
Author:
Henrik Bettermann
Message:

Remove trash.

Location:
main/waeup.ikoba/trunk/src/waeup/ikoba/customers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser.py

    r12793 r12802  
    158158                self.flash(_('Empty search string'), type="warning")
    159159            return
    160         if self.searchtype == 'current_session':
    161             try:
    162                 self.searchterm = int(self.searchterm)
    163             except ValueError:
    164                 self.flash(_('Only year dates allowed (e.g. 2011).'),
    165                            type="danger")
    166                 return
    167160        self.hitlist = search_customers(query=self.searchterm,
    168161            searchtype=self.searchtype, view=self)
     
    200193                self.flash(_('Empty search string'), type="warning")
    201194            return
    202         if self.searchtype == 'current_session':
    203             try:
    204                 self.searchterm = int(self.searchterm)
    205             except ValueError:
    206                 self.flash(_('Only year dates allowed (e.g. 2011).'),
    207                            type="danger")
    208                 return
    209195        if not 'entries' in form:
    210196            self.hitlist = search_customers(query=self.searchterm,
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/utils.py

    r12793 r12802  
    405405                if payment.state != STATE_PAID:
    406406                    continue
    407                 data.append(Paragraph("Payment %s" % payment_number, HEADLINE1_STYLE))
     407                data.append(
     408                    Paragraph("Payment %s" % payment_number, HEADLINE1_STYLE))
    408409                separators = getattr(self, 'SEPARATORS_DICT', {})
    409410                table = creator.getWidgetsTable(
Note: See TracChangeset for help on using the changeset viewer.