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

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

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/BLPeriodInfo.py   Products.BastionLedger(Download)
            account = self.blLedger()._getOb(id)
            # TODO - balance is probably zero ...
            self._setObject(id, BLPeriodRec(id, 
                                            account.title, 
                                            account.accno, 
                    opening_bal = ledger.zeroAmount()
                amount = opening_bal + a.total(effective=(self.beginning(), self.ended()), currency=currency)
                self._setObject(a.getId(), BLPeriodRec(a.getId(), a.title, a.accno, a.type, amount))
                total += amount
                count += 1
            for a in filter(lambda x: not seen.has_key(x.getId()), ledger.accountValues()):
                amount = a.balance(effective=self.effective(), currency=currency)
                self._setObject(a.getId(), BLPeriodRec(a.getId(), a.title, a.accno, a.type, amount))
                total += amount
                count += 1
 
        if getattr(aq_base(self), infosid, None) is None:
            self._setObject(infosid, 
                            BLPeriodInfos(infosid, 
                                          period_began,