Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion #2304: [patch] DISABLE_TRANSACTION_MANAGEMENT is not working as described in Doc's
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Django  
View profile  
 More options Jan 10 2010, 12:28 pm
From: "Django" <nore...@djangoproject.com>
Date: Sun, 10 Jan 2010 17:28:55 -0000
Local: Sun, Jan 10 2010 12:28 pm
Subject: Re: [Django] #2304: [patch] DISABLE_TRANSACTION_MANAGEMENT is not working as described in Doc's
#2304: [patch] DISABLE_TRANSACTION_MANAGEMENT is not working as described in Doc's
--------------------------------------------------------+------------------ -
          Reporter:  scott.benningh...@openmercury.com  |         Owner:  nobody                                      
            Status:  new                                |     Milestone:                                              
         Component:  Database layer (models, ORM)       |       Version:                                              
        Resolution:                                     |      Keywords:  Unit of work, commit, rollback, transactions
             Stage:  Accepted                           |     Has_patch:  1                                          
        Needs_docs:  0                                  |   Needs_tests:  1                                          
Needs_better_patch:  1                                  |  
--------------------------------------------------------+------------------ -
Changes (by kmtracey):

  * needs_better_patch:  0 => 1

Comment:

 The existing patch is not the correct solution.

 Per Jacob's response in this thread: http://groups.google.com/group
 /django-developers/browse_thread/thread/b633d56fdc7d4107/

 the problem is not that the function isn't implemented, but rather that
 that docs and code do not agree on the name for the setting that controls
 the function.  The code uses a setting named TRANSACTIONS_MANAGED (default
 value False in django/conf/global_settings.py), not a setting named
 DISABLE_TRANSACTION_MANAGEMENT. The fix, I believe, is a simple global
 replace in either the code or the doc of one for the other, depending on
 which one is chosen to keep.

 DISABLE_TRANSACTION_MANAGEMENT is the one I would keep.  It seems to more
 clearly convey that a setting of True means Django will not manage
 transactions.  I found the actual default value for TRANSACTIONS_MANAGED
 to be surprising when I checked on it, because I expected it to reflect
 whether Django code was responsible for transaction management.  In fact
 its apparently the reverse of what I expected based just on the name (I
 did not look at the code that uses it, just noted that there is in fact
 code that references its value, unlike DISABLE_TRANSACTION_MANAGEMENT).

 Note neither name is documented in the full list of settings, so it might
 be good to add doc there as well when this is done.

--
Ticket URL: <http://code.djangoproject.com/ticket/2304#comment:8>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.