def transaction_teardown_request(error=None):
 if view_has_annotation(NO_AUTO_TRANSACTION_ATTR):
  return
 if ((error is not None) and current_atomic):
  current_atomic.__exit__(error.__class__, error, None)

def transaction_teardown_request ( error = None ) : if view_has_annotation ( NO_AUTO_TRANSACTION_ATTR ) : return if ( ( error is not None ) and current_atomic ) : current_atomic . __exit__ ( error . __class__ , error , None )
rollback transaction on uncaught error .