def start_request(self, call_list): """ Setup the database, then pass the call list on to dispatch_many to handle them. """ db.begin_txn() try: results = self.dispatch_many(call_list) except Fault, fault: db.abort_txn() log.warning("Fault %d: %s" %(fault.faultCode, fault.faultString)) raise
def start_request(self, call_list): """ Setup the database, then pass the call list on to dispatch_many to handle them. """ db.begin_txn() try: results = self.dispatch_many(call_list) except Fault, fault: db.abort_txn() log.warning("Fault %d: %s" % (fault.faultCode, fault.faultString)) raise
def setup(self): setup_test_db() db.begin_txn()