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

All Samples(41)  |  Call(24)  |  Derive(2)  |  Import(15)

src/p/r/Products.PloneArticle-4.2.0/Products/PloneArticle/pafti.py   Products.PloneArticle(Download)
from Products.CMFCore.permissions import ManagePortal
from Products.CMFDynamicViewFTI.fti import DynamicViewTypeInformation
from Products.CMFCore.TypesTool import TypesTool, FactoryTypeInformation
 
# Products imports

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/TypesTool.py   Products.CMFPlone(Download)
from Products.CMFCore.ActionInformation import ActionInfo
from Products.CMFCore.interfaces import IAction
from Products.CMFCore.TypesTool import TypesTool as BaseTool
 
from Products.CMFPlone.PloneBaseTool import PloneBaseTool
 
 
class TypesTool(PloneBaseTool, BaseTool):

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/TypesTool.py   Products.CMFPlone(Download)
from Products.CMFCore.ActionInformation import ActionInfo
from Products.CMFCore.interfaces import IAction
from Products.CMFCore.TypesTool import TypesTool as BaseTool
 
from Products.CMFPlone.PloneBaseTool import PloneBaseTool
 
 
class TypesTool(PloneBaseTool, BaseTool):

src/e/x/experimental.contentcreation-1.0rc1/experimental/contentcreation/patches.py   experimental.contentcreation(Download)
    return result
 
from Products.CMFCore.TypesTool import TypesTool
TypesTool.listTypeInfo = listTypeInfo
 

src/p/r/Products.CMFDefault-2.3.0-beta2/Products/CMFDefault/tests/test_SyndicationTool.py   Products.CMFDefault(Download)
        from Products.CMFCore.PortalFolder import PortalFolder
        from Products.CMFCore.CMFBTreeFolder import CMFBTreeFolder
        from Products.CMFCore.TypesTool import TypesTool
 
        PERIOD = 'hourly'
        FREQUENCY = 4
        NOW = datetime.now()
        MAX_ITEMS = 42
 
        getSiteManager().registerUtility(TypesTool(), ITypesTool)

src/p/r/Products.CMFDefault-2.3.0-beta2/Products/CMFDefault/tests/test_Document.py   Products.CMFDefault(Download)
from Products.CMFCore.tests.base.tidata import FTIDATA_CMF
from Products.CMFCore.TypesTool import FactoryTypeInformation as FTI
from Products.CMFCore.TypesTool import TypesTool
from Products.CMFDefault import utils
 
    def testHTML(self):
        self.REQUEST['BODY'] = BASIC_HTML
 
        ttool = TypesTool()
        fti = FTIDATA_CMF[0].copy()

src/p/r/Products.CMFDefault-2.3.0-beta2/Products/CMFDefault/tests/test_Discussions.py   Products.CMFDefault(Download)
from Products.CMFCore.tests.base.tidata import FTIDATA_DUMMY
from Products.CMFCore.TypesTool import FactoryTypeInformation as FTI
from Products.CMFCore.TypesTool import TypesTool
from Products.CMFDefault.DiscussionTool import DiscussionTool
from Products.CMFDefault.exceptions import DiscussionNotAllowed
        self.site = DummySite('site').__of__(self.app)
        self.dtool = DiscussionTool()
        self.ttool = TypesTool()
        sm = getSiteManager()
        sm.registerUtility(self.dtool, IDiscussionTool)

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/tests/test_TypesTool.py   Products.CMFCore(Download)
    def _getTargetClass(self):
        from Products.CMFCore.TypesTool import TypesTool
        return TypesTool
 
    def _makeOne(self):
    def _getTargetClass(self):
        from Products.CMFCore.TypesTool import TypesTool
        return TypesTool
 
    def _makeOne(self):
    def _makeTypesTool(self):
        from Products.CMFCore.TypesTool import TypesTool
 
        return TypesTool()
 

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/tests/test_PortalFolder.py   Products.CMFCore(Download)
from Products.CMFCore.tests.base.tidata import FTIDATA_DUMMY
from Products.CMFCore.TypesTool import FactoryTypeInformation as FTI
from Products.CMFCore.TypesTool import TypesTool
from Products.CMFCore.WorkflowTool import WorkflowTool
from types import TupleType
        newSecurityManager(None, acl_users.all_powerful_Oz)
 
        ttool = self.site._setObject('portal_types', TypesTool())
        ttool._setObject(self._PORTAL_TYPE,
                         FTI(id=self._PORTAL_TYPE,
    def test_contents_methods(self):
        ttool = self.site._setObject( 'portal_types', TypesTool() )
        f = self._makeOne('foo')
        self.assertEqual( f.objectValues(), [] )
        self.assertEqual( f.contentIds(), [] )
        #
        test = self._makeOne('test')
        ttool = self.site._setObject( 'portal_types', TypesTool() )
        ctool = self.site._setObject( 'portal_catalog', DummyCatalogTool() )
        self.assertEqual( len(ctool), 0 )
        # instantiation (Tracker issue 309)
        #
        ttool = self.site._setObject( 'portal_types', TypesTool() )
        ctool = self.site._setObject( 'portal_catalog', DummyCatalogTool() )
        wftool = self.site._setObject( 'portal_workflow', WorkflowTool() )

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/tests/test_OpaqueItems.py   Products.CMFCore(Download)
    import DummyContent as OriginalDummyContent
from Products.CMFCore.tests.base.testcase import SecurityTest
from Products.CMFCore.TypesTool import TypesTool
 
 
 
        # setting up types tool
        root._setObject( 'portal_types', TypesTool() )
 
        # setup portal

  1 | 2  Next