예제 #1
0
 def commit(self):
     """Commit the load transaction and flush the session
     """
     if self.connection:
         # note that when not using a connection, calling session.commit() 
         # as the inheirted code does will automatically flush the session
         self.session.flush()
     
     log.debug("transaction.commit() <- %s", self.transaction)
     DBLoadableFixture.commit(self)
예제 #2
0
    def commit(self):
        """Commit the load transaction and flush the session
        """
        if self.connection:
            # note that when not using a connection, calling session.commit()
            # as the inheirted code does will automatically flush the session
            self.session.flush()

        log.debug("transaction.commit() <- %s", self.transaction)
        DBLoadableFixture.commit(self)
    def commit(self):
        """Commit the load transaction and flush the session
        """
        if self.connection:
            # note that when not using a connection, calling session.commit()
            # as the inheirted code does will automatically flush the session
            self.session.flush()
        # this is a hack because I can't get transaction.commit
        # to actually do anything for me...
        self.session.commit()

        log.debug("transaction.commit() <- %s", self.transaction)
        DBLoadableFixture.commit(self)
예제 #4
0
 def commit(self):
     """Commit transaction"""
     if self.use_transaction:
         DBLoadableFixture.commit(self)
예제 #5
0
 def commit(self):
     if self.use_transaction:
         DBLoadableFixture.commit(self)
예제 #6
0
 def commit(self):
     self.session.flush()
     DBLoadableFixture.commit(self)
예제 #7
0
 def commit(self):
     """Commit transaction"""
     if self.use_transaction:
         DBLoadableFixture.commit(self)