Ignore:
Timestamp:
30 Nov 2014, 20:49:22 (10 years ago)
Author:
Henrik Bettermann
Message:

The term 'application' should really not be used in Python-based portal software.

Replace 'application' by 'contract': batch 1

File:
1 edited

Legend:

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

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