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

All Samples(66)  |  Call(34)  |  Derive(2)  |  Import(30)

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/CMFBTreeFolder.py   Products.CMFCore(Download)
 
from Products.CMFCore.permissions import AddPortalFolders
from Products.CMFCore.PortalFolder import PortalFolder
from Products.CMFCore.PortalFolder import PortalFolderBase
 
    def manage_addPortalFolder(self, id, title='', REQUEST=None):
        """Add a new PortalFolder object with id *id*.
        """
        ob = PortalFolder(id, title)
        self._setObject(id, ob, suppress_events=True)

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/PortalObject.py   Products.CMFCore(Download)
from Products.CMFCore.permissions import RequestReview
from Products.CMFCore.permissions import ReviewPortalContent
from Products.CMFCore.PortalFolder import PortalFolder
from Products.CMFCore.Skinnable import SkinnableObjectManager
 
PORTAL_SKINS_TOOL_ID = 'portal_skins'
 
 
class PortalObjectBase(PortalFolder, SkinnableObjectManager):

src/p/r/Products.CMFDefault-2.3.0-beta2/Products/CMFDefault/SkinnedFolder.py   Products.CMFDefault(Download)
from Products.CMFCore.CMFCatalogAware import WorkflowAware
from Products.CMFCore.interfaces import IContentish
from Products.CMFCore.PortalFolder import PortalFolder
from Products.CMFDefault.DublinCore import DefaultDublinCoreImpl
from Products.CMFDefault.permissions import ModifyPortalContent
from Products.CMFDefault.permissions import View
 
 
class SkinnedFolder(CatalogAware, WorkflowAware, PortalFolder):

src/p/r/Products.Relations-0.9b1/Products/Relations/utils.py   Products.Relations(Download)
    from Products.CMFCore.PortalFolder import PortalFolderBase
except ImportError: # catch CMF 1.4 installations here
    from Products.CMFCore.PortalFolder import PortalFolder
    PortalFolderBase = PortalFolder
 

src/p/r/Products.ATSchemaEditorNG-0.6/Products/ATSchemaEditorNG/SchemaEditor.py   Products.ATSchemaEditorNG(Download)
from Acquisition import ImplicitAcquisitionWrapper
from BTrees.OOBTree import OOBTree
from Products.CMFCore.PortalFolder import PortalFolder
from Products.CMFCore.permissions import *
from Products.CMFCore.utils import getToolByName

src/c/y/cyn.in-HEAD/products/ATRatings/RatingsFolderMixin.py   cyn.in(Download)
from Products.CMFCore.utils import getToolByName
from Products.CMFCore import CMFCorePermissions
from Products.CMFCore.PortalFolder import PortalFolder
 
from Products.Archetypes.public import Schema

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/tests/test_PortalFolder.py   Products.CMFCore(Download)
    def setUp(self):
        from Products.CMFCore.PortalFolder import PortalFolder
 
        SecurityTest.setUp(self)
        sm = getSiteManager()
        ttool._setObject('Dummy Content', FTI(**FTIDATA_DUMMY[0].copy()))
 
        self.f = self.site._setObject('container', PortalFolder('container'))
        self.f._setPortalTypeName(self._PORTAL_TYPE)
 
    def _getTargetClass(self):
        from Products.CMFCore.PortalFolder import PortalFolder
 
        return PortalFolder
 
        #   content object, and test.
        #
        from Products.CMFCore.PortalFolder import PortalFolder
 
        test = self._makeOne('test')
        ttool = self.site._setObject( 'portal_types', TypesTool() )
        ctool = self.site._setObject( 'portal_catalog', DummyCatalogTool() )
        self.assertEqual( len(ctool), 0 )
 
        test._setObject( 'sub', PortalFolder( 'sub', '' ) )

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/tests/test_TypesTool.py   Products.CMFCore(Download)
    def test_constructContent_simple_STI(self):
        from AccessControl import Unauthorized
        from AccessControl.SecurityManagement import newSecurityManager
        from AccessControl.SecurityManager import setSecurityPolicy
        from Products.CMFCore.PortalFolder import PortalFolder
        script.write(STI_SCRIPT)
        tool._setObject('addBaz',  script)
        folder = site._setObject( 'folder', PortalFolder(id='folder') )
        folder.manage_addProduct = {'FooProduct':
                                        DummyFactoryDispatcher(folder) }

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/tests/test_OpaqueItems.py   Products.CMFCore(Download)
from Products.CMFCore.interfaces import ICallableOpaqueItemEvents
from Products.CMFCore.interfaces import IContentish
from Products.CMFCore.PortalFolder import PortalFolder
from Products.CMFCore.testing import TraversingEventZCMLLayer
from Products.CMFCore.tests.base.dummy \
        except AttributeError:
            pass
        root._setObject('test', PortalFolder('test', ''))
        self.test = test = self.root.test
 
        # setting up folders
        test._setObject( 'folder', PortalFolder( 'folder', '' ) )
        folder = self.folder = test.folder
        folder._setObject( 'sub', PortalFolder( 'sub', '' ) )

src/s/c/sc.contentrules.metadata-1.0.1/src/sc/contentrules/metadata/tests/test_action_subject.py   sc.contentrules.metadata(Download)
from plone.contentrules.rule.interfaces import IRuleAction
from Products.CMFCore.PortalContent import PortalContent
from Products.CMFCore.PortalFolder import PortalFolder
from sc.contentrules.metadata.actions.subject import SubjectAction
from sc.contentrules.metadata.actions.subject import SubjectEditForm
        o = PortalContent('cmf', 'CMF Content', '', '', '')
        self.folder._setObject('cmf', o, suppress_events=True)
        o = PortalFolder('cmf_folder', 'CMF Folder', '')
        self.folder._setObject('cmf_folder', o, suppress_events=True)
        o = PortalContent('cmf', 'CMF Content', '', '', '')

  1 | 2  Next