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

All Samples(57)  |  Call(32)  |  Derive(4)  |  Import(21)

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_CMF
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
        ttool = self.site._setObject('portal_types', TypesTool())
        ttool._setObject(self._PORTAL_TYPE,
                         FTI(id=self._PORTAL_TYPE,
                             title='Folder or Directory',
                             meta_type=PortalFolder.meta_type,
                             factory='cmf.folder',
                             filter_content_types=0))
        ttool._setObject('Dummy Content', FTI(**FTIDATA_DUMMY[0].copy()))
 
        fti = FTIDATA_DUMMY[0].copy()
        ttool._setObject( 'Dummy Content', FTI(**fti) )
        self.assertEqual( f.objectValues(), [f.sub1] )
        self.assertEqual( f.contentIds(), ['sub1'] )
        ttool = self.site._setObject( 'portal_types', TypesTool() )
        ttool._setObject( 'Folder'
                        , FTI( id='Folder'
                             , title='Folder or Directory'
                             , meta_type=PortalFolder.meta_type

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/browser/typeinfo.py   Products.CMFCore(Download)
from zope.component import queryUtility
 
from Products.CMFCore.TypesTool import FactoryTypeInformation
from Products.CMFCore.TypesTool import ScriptableTypeInformation
from Products.GenericSetup.browser.utils import AddWithPresettingsViewBase

src/c/o/collective.contemplate-0.1/src/collective/contemplate/typeinfo.py   collective.contemplate(Download)
class TemplateFactoryTypeInfo(TemplateTypeInfo,
                              TypesTool.FactoryTypeInformation):
    """Template Factory Type Information"""
 
    meta_type = 'TemplateFactoryTypeInfo'

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
class DynamicAllowedContentFTI(FactoryTypeInformation):
    """
    Allow content to be added if it implements BaseInnercontentProxy
    """
 

src/e/x/experimental.contentcreation-1.0rc1/experimental/contentcreation/patches.py   experimental.contentcreation(Download)
    return container._getOb(newid)
 
from Products.CMFCore.TypesTool import FactoryTypeInformation
FactoryTypeInformation._constructInstance = _constructInstance
 

src/p/r/Products.CMFDynamicViewFTI-4.0.5/Products/CMFDynamicViewFTI/fti.py   Products.CMFDynamicViewFTI(Download)
from types import ClassType
 
from Products.CMFCore.TypesTool import FactoryTypeInformation
from Products.CMFCore.permissions import View
from Products.CMFCore.utils import getToolByName
class DynamicViewTypeInformation(FactoryTypeInformation):
    """FTI with dynamic views
 
    A value of (dynamic view) as alias is replaced by the output of defaultView()
    """

src/e/r/erp5-HEAD/product/ERP5Type/ERP5Type.py   erp5(Download)
from Acquisition import aq_base, aq_inner, aq_parent
import Products
from Products.CMFCore.TypesTool import FactoryTypeInformation
from Products.CMFCore.Expression import Expression
from Products.CMFCore.exceptions import AccessControl_Unauthorized
class ERP5TypeInformation(XMLObject,
                          FactoryTypeInformation,
                          LocalRoleAssignorMixIn,
                          TranslationProviderBase):
    """

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/ArchetypeTool.py   Products.Archetypes(Download)
from Products.CMFCore import permissions
from Products.CMFCore.ActionProviderBase import ActionProviderBase
from Products.CMFCore.TypesTool import FactoryTypeInformation
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.utils import UniqueObject

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/ArchetypeTool.py   Products.Archetypes(Download)
from Products.CMFCore import permissions
from Products.CMFCore.ActionProviderBase import ActionProviderBase
from Products.CMFCore.TypesTool import FactoryTypeInformation
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.utils import UniqueObject

src/p/r/Products.CompositePack-1.2a1/Products/CompositePack/tests/test_exportimport.py   Products.CompositePack(Download)
 
        typetool = getToolByName(self.ct, 'portal_types')
        from Products.CMFCore.TypesTool import FactoryTypeInformation
        fti = FactoryTypeInformation(id="custom_composable_id")
        typetool._setObject(fti.id, fti)

  1 | 2  Next