(self, callback=None)
return self.on_result
Close the transaction and commit session to the backend.
Close the transaction and commit session to the backend.
Close the transaction and commit session to the backend .
def commit(self, callback=None):
        '''Close the transaction and commit session to the backend.'''
        if self.executed:
            raise InvalidTransaction('Invalid operation. '
                                     'Transaction already executed.')
        session = self.session
        self.session = None
        self.on_result = self._commit(session, callback)
        return self.on_result
def commit ( self , callback = None ) : if self . executed : raise InvalidTransaction ( 'Invalid operation. ' 'Transaction already executed.' ) session = self . session self . session = None self . on_result = self . _commit ( session , callback ) return self . on_result