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

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/setuphandlers.py   Products.BastionLedger(Download)
from LedgerControllerTool import generateLedger
 
from BLLedger import BLLedger
from BLAssociations import manage_addBLAssociationsFolder
 
    if not getattr(aq_base(bltool), 'Ledger', None):
 
        bltool._setObject('Ledger', BLLedger('Ledger', 'General Ledger', [ CURRENCY ]))
        manage_addBLAssociationsFolder(bltool)
        print '%s: generating %s %s/charts/General\n' % (bltool, CURRENCY, os.path.dirname(__file__))

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/LedgerControllerTool.py   Products.BastionLedger(Download)
from Products.BastionBanking.ZCurrency import ZCurrency, CURRENCIES
from BLBase import PortalFolder as Folder, ProductsDictionary
from BLLedger import BLLedger
from BLAccount import manage_addBLAccount
from BLAssociations import manage_addBLAssociationsFolder, manage_addBLAssociation
            self._delObject('Ledger')
 
        self._setObject('Ledger', BLLedger('Ledger', 'General Ledger', [ currency ]))
        ledger = self._getOb('Ledger')