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

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

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
             'Support for paths will be removed in CMF 2.3. Please use '
             'globals instead.', DeprecationWarning, stacklevel=2)
        (package, name) = _findProductForPath(_prefix, name)
 
    reg_key = _generateKey(package, name)

src/p/r/Products.CMFCore-2.2.8/Products/CMFCore/tests/test_DirectoryView.py   Products.CMFCore(Download)
    def test__findProductForPath(self):
        from Products.CMFCore.DirectoryView import _findProductForPath
 
        cmfpath = sys.modules['Products.CMFCore'].__path__[0]
        self.assertEqual(_findProductForPath(cmfpath),
                         ('Products.CMFCore', ''))
 
        cmfpath = join(cmfpath, 'tests')
        self.assertEqual(_findProductForPath(cmfpath),