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

All Samples(4)  |  Call(0)  |  Derive(2)  |  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
class TransactionInformation( DirectoryInformation ):
    """ placeholder to resurrect further txn template stuff from filesystem"""
 
    def prepareContents(self, registry, register_subdirs=0):
        # hmmm need to strip and change id ...
class TxnTmplDirectoryInformation(DirectoryInformation):
    """
    A file system folder containing directores and Transaction Templates
    """
    def prepareContents(self, registry, register_subdirs=0):

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/tests/testFSBLProcess.py   Products.BastionLedger(Download)
    def testMonkeyPatchedDirectoryRegistry(self):
        tmpl_path = 'BastionLedger/skins/bastionledger/blp_dividend_payment.txn'
        from Products.CMFCore.DirectoryView import _dirreg, DirectoryInformation
        dirinfo = _dirreg._directories