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

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

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/BLPeriodInfo.py   Products.BastionLedger(Download)
    def _getObCreate(self, id):
        """
        get the info rec, or create it from the underlying ledger
        """
        rec = self._getOb(id, None)
                                            account.type, 
                                            account.balance(effective=self.ended())))
            rec = self._getOb(id)
        return rec
 
        for tid in ids:
            for entry in ledger._getOb(tid).entryValues():
                rec = self._getOb(entry.accountId())
                rec.balance += entry.amount
                if reporting:
        """
        infosid = period_ended.strftime('%Y-%m-%d')
        infos = self._getOb(infosid)
        infos.manage_changeProperties(gross_profit=gross,
                                      net_profit=net,
                                          zero))
 
        infos = self._getOb(infosid)
 
        # remove the results of any previous run (auto-removing txns)...