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

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

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/FSBLProcess.py   Products.BastionLedger(Download)
 
from Products.CMFCore.utils import getPackageName
from Products.CMFCore.DirectoryView import _dirreg, registerFileExtension, registerMetaType, \
     DirectoryView, DirectoryViewSurrogate, DirectoryRegistry, DirectoryInformation, \
     _generateKey, _findProductForPath
class FSBLTransactionTemplateViewSurrogate( DirectoryViewSurrogate, BLTransactionTemplate ):
 
    meta_type = portal_type = 'FSBLTransactionTemplate'
    manage_options = BLTransactionTemplate.manage_options
 

src/p/l/plone.app.themeeditor-1.0a8/plone/app/themeeditor/cmf.py   plone.app.themeeditor(Download)
from Products.CMFCore.utils import getToolByName
from Products.CMFCore.FSObject import FSObject
from Products.CMFCore.DirectoryView import DirectoryViewSurrogate
from persistent import Persistent
from zope.app.component.hooks import getSite

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/tests/test_DirectoryView.py   Products.CMFCore(Download)
    def test_DirectoryViewExists( self ):
        # Check DirectoryView added by addDirectoryViews
        # appears as a DirectoryViewSurrogate due
        # to Acquisition hackery.
        from Products.CMFCore.DirectoryView import DirectoryViewSurrogate
    def test_DirectoryViewFolderDefault(self):
        # Test that a folder inside the fake skin really is of type
        # DirectoryViewSurrogate
        from Products.CMFCore.DirectoryView import DirectoryViewSurrogate
        testfolder = self.ob.fake_skin.test_directory
    def test_NewFolder( self ):
        # See if a new folder shows up
        from Products.CMFCore.DirectoryView import DirectoryViewSurrogate
        self.assertTrue(isinstance(self.ob.fake_skin.test3,
                                   DirectoryViewSurrogate))