OK, I think i might have a solution, but it's not very efficient and
requires a lot of SQL queries:


-----------------------------------
        def getTransactions(self,budget):
                positive_transactions = list()
                        for class in self.positive_classes:
                                for transaction in budget.transactions:
                                        if class in 
transaction.transaction_classes and not transaction in
positive_transactions:
                                                
positive_transactions.append(transaction)
-----------------------------------

Is there a better way to do this that moves most of the iterative code
to the database?


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to