Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/a/n/anthill.querytool-0.2/anthill/querytool/patches.py   anthill.querytool(Download)
    CatalogTool = None
 
from config import IMPLICIT_LANGUAGE_FILTER
 
import logging
 
    # lets filter by language
    if getToolByName(self, 'portal_quickinstaller') and IMPLICIT_LANGUAGE_FILTER is True:
        if getToolByName(self, 'portal_quickinstaller').isProductInstalled('LinguaPlone'):
            query &= Eq('Language', getToolByName(self, 'portal_languages').getPreferredLanguage())