Changeset 12592 for main/waeup.ikoba/trunk/src/waeup/ikoba/customers
- Timestamp:
- 11 Feb 2015, 11:59:34 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/vocabularies.py
r12585 r12592 19 19 """ 20 20 import grok 21 from datetime import date22 21 from zope.component import getUtility, queryUtility 23 22 from zope.catalog.interfaces import ICatalog … … 168 167 if not concat: 169 168 return products 170 now = date.today()169 171 170 resultlist = [ 172 171 value for value in products 173 if value.contract_category == concat 174 and (not value.valid_from or value.valid_from <= now) 175 and (not value.valid_to or value.valid_to >= now) 172 if value.contract_category == concat and value.active 176 173 ] 177 174 return resultlist
Note: See TracChangeset for help on using the changeset viewer.