Re: Database weirdness in test harness

2008-06-20 Thread Luke Plant
On Friday 20 June 2008 23:40:43 Michael Glassford wrote: > Django builds a list of all the objects that are foreign keyed to > the one you are deleting and deletes those first, so it bypasses > any ON DELETE clauses. I assume this is what you're seeing. Yes, this is the area I'm testing, I'm

Re: Database weirdness in test harness

2008-06-20 Thread Michael Glassford
Django builds a list of all the objects that are foreign keyed to the one you are deleting and deletes those first, so it bypasses any ON DELETE clauses. I assume this is what you're seeing. I'm preparing to propose a patch that will add ON DELETE and ON UPDATE support to Django (so that you

Database weirdness in test harness

2008-06-20 Thread Luke Plant
Hi all, I'm trying to pin down what I think is a bug in Model.delete(), but I'm encountering bizarre behaviour with my tests that I can't reproduce in normal circumstances. In particular, it is as if foreign key constraint checking has been turned off. The attached patch adds tests that can

Re: GSOC: More backends for djangosearch

2008-06-20 Thread Gabriel Sean Farrell
On Thu, Jun 19, 2008 at 10:47:36PM +0100, Ben Firshman wrote: > Not that I just want to copy other projects, but it'd would be nice to > bring together all the best features of all the Django search > solutions that already exist. It would be ideal if the developers of > all these projects

Re: Introducing ModelView, a RESTful class-based view of your resources

2008-06-20 Thread tifosi
Thanks for your quick answser ! I join #django-fr and #django. Are you on these channels ? About the solution, I subclass Collection and Entry. Perhaps we can pass the nested Collection to the master Collection ? But we must also pass the reg exp of nested Collection. Bonne soirée Clément

Re: Introducing ModelView, a RESTful class-based view of your resources

2008-06-20 Thread David Larlet
Salut Clément, Le 19 juin 08 à 16:15, tifosi a écrit : > > Hi David, > > Thank for your code and the repository, I use the django-rest- > interface and > it's good news, that someone continue the job. > > I would like to get nested resources (e.g.: /articles/1/comments/ or >

Re: Support for ON DELETE and ON UPDATE in foreign keys

2008-06-20 Thread Sander Steffann
Hi Mike, > If I can determine that there is sufficient interest that there's a > decent chance of it being used (always assuming the implementation is > found acceptable, of course), I'll definitely work on it. +1 This feature would be very nice to have. Thanks! Sander

Re: Support for ON DELETE and ON UPDATE in foreign keys

2008-06-20 Thread Michael Glassford
Russell Keith-Magee wrote: > On Thu, Jun 19, 2008 at 11:00 PM, Michael Glassford > <[EMAIL PROTECTED]> wrote: >> Now for one of the reasons that I've been trying to get the Django unit >> tests running: I'm interested in submitting a patch that adds some ON >> DELETE and ON UPDATE support in

Re: Experimental Git repository available

2008-06-20 Thread David Reynolds
On 19 Jun 2008, at 6:07 pm, Jacob Kaplan-Moss wrote: > If you know the correct incantation to add other git-svn-created > branches, feel free to school me :) I think Brian Rosner covered pulling in all branches from svn on his screencast about django and git [0] but I can't off the top of my

Re: Support for ON DELETE and ON UPDATE in foreign keys

2008-06-20 Thread Tai Lee
I've implemented some code already to de-reference (SET_NULL) on delete, in a view which first presents a list of objects which will be deleted and a list of objects which will be de-referenced. It might not be the most efficient approach, but it could be a starting point. def _clear(instance):

Re: Experimental Git repository available

2008-06-20 Thread Jeffrey Gelens
On Jun 20, 3:21 am, "Waylan Limberg" <[EMAIL PROTECTED]> wrote: > On Thu, Jun 19, 2008 at 1:52 PM, Alexander Solovyov > > <[EMAIL PROTECTED]> wrote: > > > On Thu, Jun 19, 2008 at 8:09 PM, Jacob Kaplan-Moss > > <[EMAIL PROTECTED]> wrote: > >> Yeah, hgsvn is one-way, > > > H > > >>hg help

Re: Introducing ModelView, a RESTful class-based view of your resources

2008-06-20 Thread [EMAIL PROTECTED]
Hi Clement, Have a look in the django-rest-interface examples [1] they cover this exactly. You can do what you want by sub-classing Collection. [1] http://code.google.com/p/django-rest-interface/source/browse/trunk/django_restapi_tests/examples/custom_urls.py regards Matthew On Jun 20,