On Tue, 2009-03-10 at 12:21 -0500, Adrian Holovaty wrote: [...] > One ugliness about this is that it has to monkeypatch the settings > file in order to change the DATABASE_NAME, before passing it to > DatabaseWrapper._cursor(). So my proposal is to change > DatabaseWrapper._cursor() to accept a settings *dictionary* instead of > a settings *object*.
I think the direction is a good one. Something that far down the chain probably shouldn't have a hard dependency on settings. We insulate the users from needing to pass around settings everywhere manually, but it's not too onerous to do so ourselves. Whether you pass the dictionary to _cursor or to the constructor as Alex proposes is for you to decide, I think. We can evolve that over time if we need to. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---