Changeset 12802 for main/waeup.ikoba
- Timestamp:
- 20 Mar 2015, 18:04:32 (10 years ago)
- 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 158 158 self.flash(_('Empty search string'), type="warning") 159 159 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 return167 160 self.hitlist = search_customers(query=self.searchterm, 168 161 searchtype=self.searchtype, view=self) … … 200 193 self.flash(_('Empty search string'), type="warning") 201 194 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 return209 195 if not 'entries' in form: 210 196 self.hitlist = search_customers(query=self.searchterm, -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/utils.py
r12793 r12802 405 405 if payment.state != STATE_PAID: 406 406 continue 407 data.append(Paragraph("Payment %s" % payment_number, HEADLINE1_STYLE)) 407 data.append( 408 Paragraph("Payment %s" % payment_number, HEADLINE1_STYLE)) 408 409 separators = getattr(self, 'SEPARATORS_DICT', {}) 409 410 table = creator.getWidgetsTable(
Note: See TracChangeset for help on using the changeset viewer.