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

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

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/BLTransaction.py   Products.BastionLedger(Download)
    def filtered_meta_types(self, request=None):
        """ """
        if self.status() in ['incomplete', 'complete']:
            return [ ProductsDictionary('BLEntry') ]
        return []
        """
        wftool = getToolByName(self, 'portal_workflow')
        status = self.status()
 
        base = self.defaultCurrency()
                wf = wftool.getWorkflowsFor(self)[0]
                wf._executeTransition(self, wf.transitions.complete)
                status = self.status()
 
        elif status == 'complete':
            if self.debitTotal(currency=base) != abs(self.creditTotal(currency=base)):
                wf = wftool.getWorkflowsFor(self)[0]
                wf._executeTransition(self, wf.transitions.incomplete)
                status = self.status()
    def manage_post(self, REQUEST=None):
        """
        post transaction entries  - note we do not post zero-amount entries!
        """
	status = self.status()