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

All Samples(8)  |  Call(0)  |  Derive(0)  |  Import(8)

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/BLLedger.py   Products.BastionLedger(Download)
 
from BLBase import *
from Products.BastionLedger.BLGlobals import EPOCH, ACC_TYPES
from Products.BastionBanking.ZCurrency import ZCurrency, CURRENCIES
 
                                             account.objectIds()))
            # be paranoid and ensure everything is zero
            account.manage_setBalance(zero, EPOCH)
        self._next_txn_id = 1
 

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/tests/testTransaction.py   Products.BastionLedger(Download)
from Products.BastionLedger.utils import floor_date
from Products.AdvancedQuery import Between, Eq
from Products.BastionLedger.BLGlobals import EPOCH
 
def txnQ(ledger, effective):

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/tests/testSubsidiaryLedger.py   Products.BastionLedger(Download)
from Products.BastionBanking.ZCurrency import ZCurrency
from Products.BastionLedger.utils import ceiling_date, floor_date
from Products.BastionLedger.BLGlobals import EPOCH
 
zero = ZCurrency('GBP 0.00')

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/tests/testPeriodEnd.py   Products.BastionLedger(Download)
from Products.BastionLedger.Exceptions import InvalidPeriodError
from Products.BastionLedger.utils import ceiling_date, floor_date
from Products.BastionLedger.BLGlobals import EPOCH
 
from Products.BastionLedger.interfaces.periodend import IPeriodEndInfo, IPeriodEndInfos
        self.assertEqual(periods.nextPeriodEnd(effective), ceiling_date(DateTime('2009/06/30')))
 
        periods.addPeriodLedger(self.ledger.Ledger, EPOCH, ceiling_date(effective))
 
        self.assertEqual(periods.periodEnds(), [ceiling_date(DateTime('2009/01/01'))])
        self.assertEqual(periods.lastClosingForLedger('Ledger', effective), EPOCH)
 
        periods.addPeriodLedger(self.ledger.Ledger, EPOCH, effective)
 
        self.assertEqual(periods.lastClosingForLedger('Ledger'), effective)

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/tests/testOrderBook.py   Products.BastionLedger(Download)
from Products.CMFCore.utils import getToolByName
from Products.BastionBanking.ZCurrency import ZCurrency
from Products.BastionLedger.BLGlobals import EPOCH
from Products.BastionLedger.utils import add_seconds, floor_date
 

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/tests/testForwards.py   Products.BastionLedger(Download)
from Products.BastionBanking.ZCurrency import ZCurrency
from Products.BastionLedger.utils import ceiling_date, floor_date
from Products.BastionLedger.BLGlobals import EPOCH
from Products.AdvancedQuery import Between, Eq
 

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/tests/testAccount.py   Products.BastionLedger(Download)
from Acquisition import aq_base
from DateTime import DateTime
from Products.BastionLedger.BLGlobals import EPOCH
from Products.BastionBanking.ZCurrency import ZCurrency
from Products.BastionLedger.utils import floor_date, lastXDays

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/tests/setup.py   Products.BastionLedger(Download)
default_user = ZopeTestCase.user_name
 
from Products.BastionLedger.BLGlobals import EPOCH
from Products.BastionLedger.utils import ceiling_date
 
            ct = portal.portal_currencies
            ct.manage_changeProperties(automagic=True, base='GBP', look_days=0)
            ct._addQuote('AUD', 0.0, 0.0, 0.4000, EPOCH)
            ct._addQuote('AUD', 0.0, 0.0, 0.4000, DateTime() - 0.5)
            self._print('Set up GBP base currency\n')