def patch_dateindex():
    from Products.PluginIndexes.DateIndex.DateIndex import DateIndex
    DateIndex._apply_index = dateindex_apply_index

    from catalog import ADVANCEDTYPES
    ADVANCEDTYPES.append(DateIndex)
    logger.debug('Patched DateIndex._apply_index')
def patch_daterangeindex():
    from Products.PluginIndexes.DateRangeIndex.DateRangeIndex import DateRangeIndex
    DateRangeIndex._apply_index = daterangeindex_apply_index
    DateRangeIndex._convertDateTime = _convertDateTime

    from catalog import ADVANCEDTYPES
    ADVANCEDTYPES.append(DateRangeIndex)
    logger.debug('Patched DateRangeIndex._apply_index')
def patch_dateindex():
    from Products.PluginIndexes.DateIndex.DateIndex import DateIndex

    DateIndex._apply_index = dateindex_apply_index

    from catalog import ADVANCEDTYPES

    ADVANCEDTYPES.append(DateIndex)
    logger.debug("Patched DateIndex._apply_index")
def patch_unindex():
    from Products.PluginIndexes.common.UnIndex import UnIndex
    UnIndex._apply_index = unindex_apply_index
    logger.debug('Patched UnIndex._apply_index')

    from catalog import ADVANCEDTYPES, VALUETYPES
    from Products.PluginIndexes.FieldIndex.FieldIndex import FieldIndex
    ADVANCEDTYPES.append(FieldIndex)
    VALUETYPES.append(FieldIndex)
    from Products.PluginIndexes.KeywordIndex.KeywordIndex import KeywordIndex
    ADVANCEDTYPES.append(KeywordIndex)
    VALUETYPES.append(KeywordIndex)
示例#5
0
def patch_unindex():
    from Products.PluginIndexes.common.UnIndex import UnIndex
    UnIndex._apply_index = unindex_apply_index
    logger.debug('Patched UnIndex._apply_index')

    from catalog import ADVANCEDTYPES, VALUETYPES
    from Products.PluginIndexes.FieldIndex.FieldIndex import FieldIndex
    ADVANCEDTYPES.append(FieldIndex)
    VALUETYPES.append(FieldIndex)
    from Products.PluginIndexes.KeywordIndex.KeywordIndex import KeywordIndex
    ADVANCEDTYPES.append(KeywordIndex)
    VALUETYPES.append(KeywordIndex)
def patch_languageindex():
    try:
        from Products.LinguaPlone.LanguageIndex import LanguageIndex
        LanguageIndex._apply_index = languageindex_apply_index
        logger.debug('Patched LanguageIndex._apply_index')
        LanguageIndex._search = languageindex_search
        logger.debug('Patched LanguageIndex.search')

        from catalog import ADVANCEDTYPES
        ADVANCEDTYPES.append(LanguageIndex)
    except ImportError:
        pass
def patch_languageindex():
    try:
        from Products.LinguaPlone.LanguageIndex import LanguageIndex
        LanguageIndex._apply_index = languageindex_apply_index
        logger.debug('Patched LanguageIndex._apply_index')
        LanguageIndex._search = languageindex_search
        logger.debug('Patched LanguageIndex.search')

        from catalog import ADVANCEDTYPES
        ADVANCEDTYPES.append(LanguageIndex)
    except ImportError:
        pass
示例#8
0
def patch_extendedpathindex():
    pass
    try:
        from Products.ExtendedPathIndex.ExtendedPathIndex import ExtendedPathIndex
        ExtendedPathIndex._apply_index = extendedpathindex_apply_index
        logger.debug('Patched ExtendedPathIndex._apply_index')
        ExtendedPathIndex.search = extendedpathindex_search
        logger.debug('Patched ExtendedPathIndex.search')

        from catalog import ADVANCEDTYPES
        ADVANCEDTYPES.append(ExtendedPathIndex)
    except ImportError:
        pass
def patch_extendedpathindex():
    pass
    try:
        from Products.ExtendedPathIndex.ExtendedPathIndex import ExtendedPathIndex
        ExtendedPathIndex._apply_index = extendedpathindex_apply_index
        logger.debug('Patched ExtendedPathIndex._apply_index')
        ExtendedPathIndex.search = extendedpathindex_search
        logger.debug('Patched ExtendedPathIndex.search')

        from catalog import ADVANCEDTYPES
        ADVANCEDTYPES.append(ExtendedPathIndex)
    except ImportError:
        pass