Changeset 8606


Ignore:
Timestamp:
2 Jun 2012, 17:52:56 (12 years ago)
Author:
uli
Message:

Start using the smarter contextual sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/university/vocabularies.py

    r8471 r8606  
    1919"""
    2020from zc.sourcefactory.basic import BasicSourceFactory
    21 from zc.sourcefactory.contextual import BasicContextualSourceFactory
    2221from zope.catalog.interfaces import ICatalog
    2322from zope.component import getUtility, queryUtility
    2423from waeup.kofa.interfaces import SimpleKofaVocabulary, IKofaUtils
    2524from waeup.kofa.interfaces import MessageFactory as _
     25from waeup.kofa.sourcefactory import SmartBasicContextualSourceFactory
    2626from waeup.kofa.utils.utils import KofaUtils
    2727
     
    4343KOFA_UTILS = KofaUtils()
    4444
    45 class ContextualDictSourceFactoryBase(BasicContextualSourceFactory):
     45class ContextualDictSourceFactoryBase(SmartBasicContextualSourceFactory):
    4646    """A base for contextual sources based on KofaUtils dicts.
    4747
     
    103103        return "%s - %s" % (value.code, value.title[:64])
    104104
    105 class CertificateSource(BasicContextualSourceFactory):
     105
     106
     107class CertificateSource(SmartBasicContextualSourceFactory):
    106108    """A certificate source delivers all certificates provided
    107109    in the portal.
Note: See TracChangeset for help on using the changeset viewer.