Re: changing the on_delete=CASCADE default

2013-09-28 Thread Anssi Kääriäinen
On Saturday, September 28, 2013 4:31:18 AM UTC+3, Xof wrote: > > > On Sep 27, 2013, at 2:56 PM, Anssi Kääriäinen > > > wrote: > > > 1. What to do if given DB doesn't support cascades in DB (sqlite at > least, no idea of MySQL)? Initial feeling is that Django should do the > cascades in Pyt

A policy on calling super()

2013-09-28 Thread Daniele Procida
There's some discussion of a particular class, django.views.base.View, and whether its __init__() should contain a super(View, self).__init__(). But there's also a wider question of whether there should be a general rule about this, whether the inte

Re: Error recovery in transactions

2013-09-28 Thread Shai Berger
On Saturday 28 September 2013 12:24:22 Aymeric Augustin wrote: > On 28 sept. 2013, at 11:56, Shai Berger wrote: > > > If Option 2 is to be viable, it needs to be modified to store the original > > problem and its traceback, and add them to the errors somehow. On Python > > 3, > > exception chaini

Re: Error recovery in transactions

2013-09-28 Thread Aymeric Augustin
On 28 sept. 2013, at 11:56, Shai Berger wrote: > Just a note -- option 2 has the potential (like PostgreSQL's error handling) > to hide the problems and make them very hard to debug. Consider a site using > ATOMIC_REQUESTS (equivalently, TransactionMiddleware) on a > statement-atomicity > dat

Re: Error recovery in transactions

2013-09-28 Thread Shai Berger
On Saturday 28 September 2013 09:35:06 Aymeric Augustin wrote: > Hello, > > This is a follow-up to « Is "transaction.atomic" in 1.6 supposed to work > this way? ». Two options seem viable to me. We must chose one before > releasing 1.6 RC1. > > Other options have been proposed but I couldn't make

Re: Add strutctured settings module to django 1.7?

2013-09-28 Thread VernonCole
Not off topic at all, Carl, this back-and-forth is helping me, at least, consider some new things. Here's what I have learned from this discussion so far: 1. Clearly, any change needs to avoid use of the word "structured", since that is now yesterday-ish. 2. Any change needs to lead toward and

Error recovery in transactions

2013-09-28 Thread Aymeric Augustin
Hello, This is a follow-up to « Is "transaction.atomic" in 1.6 supposed to work this way? ». Two options seem viable to me. We must chose one before releasing 1.6 RC1. Other options have been proposed but I couldn't make them work satisfactorily. In order to keep this discussion manageable, if