Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(62)  |  Call(46)  |  Derive(0)  |  Import(16)

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/tests/test_PortalFolder.py   Products.CMFCore(Download)
    def test_empty( self ):
 
        from Products.CMFCore.PortalFolder import ContentFilter
 
        cfilter = ContentFilter()
        dummy = self.dummy
        assert cfilter( dummy )
    def test_Type( self ):
 
        from Products.CMFCore.PortalFolder import ContentFilter
 
        cfilter = ContentFilter( Type='foo' )

src/p/r/Products.PloneOntology-1.0.0/Products/PloneOntology/keyword.py   Products.PloneOntology(Download)
 
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.PortalFolder import ContentFilter
from Products.Archetypes.atapi import *
from Products.validation.interfaces import ivalidator
        filt['portal_type'] = pt
 
        query = ContentFilter(**filt)
        result = []
        append = result.append
        for obj in obs:
            if query(obj):

src/e/r/erp5-HEAD/product/ERP5Type/Core/Folder.py   erp5(Download)
from Products.CMFCore.exceptions import AccessControl_Unauthorized
from Products.CMFCore.CMFCatalogAware import CMFCatalogAware
from Products.CMFCore.PortalFolder import ContentFilter
 
from Products.ERP5Type.Base import Base
    object_list = self.objectValues(*args, **kw)
    if filter_kw:
      object_list = filter(ContentFilter(**filter_kw), object_list)
    return object_list
 

src/e/r/erp5-HEAD/product/CMFCategory/CategoryTool.py   erp5(Download)
from Products.ERP5Type.TransactionalVariable import getTransactionalVariable
from Products.CMFCategory import _dtmldir
from Products.CMFCore.PortalFolder import ContentFilter
from Products.CMFCategory.Renderer import Renderer
from Products.CMFCategory.Category import Category, BaseCategory