Ignore:
Timestamp:
30 Nov 2014, 21:00:30 (10 years ago)
Author:
Henrik Bettermann
Message:

Renaming batch 2

File:
1 edited

Legend:

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

    r12097 r12098  
    120120
    121121
    122 class AppCatProductSource(SmartBasicContextualSourceFactory):
     122class ConCatProductSource(SmartBasicContextualSourceFactory):
    123123    """An contract category product delivers all products
    124124    which belong to a certain contract_category.
    125125    """
    126126    def contains(self, context, value):
    127         appcat = getattr(context, 'contract_category', None)
    128         if value.contract_category == appcat:
     127        concat = getattr(context, 'contract_category', None)
     128        if value.contract_category == concat:
    129129            return True
    130130        return False
    131131
    132132    def getValues(self, context):
    133         appcat = getattr(context, 'contract_category', None)
     133        concat = getattr(context, 'contract_category', None)
    134134        products = grok.getSite()['products'].values()
    135         if not appcat:
     135        if not concat:
    136136            return products
    137137        resultlist = [
    138             value for value in products if value.contract_category == appcat]
     138            value for value in products if value.contract_category == concat]
    139139        return resultlist
    140140
Note: See TracChangeset for help on using the changeset viewer.