Re: Signals in ManyRelatedManager

2007-09-12 Thread Marty Alchin
On 9/12/07, Ludovico Magnocavallo <[EMAIL PROTECTED]> wrote: > The only advantage I see in adding signals (but I'm not an expert of > Django internals) is that it's pretty painless as it's five-lines patch, > and it leaves all the other code unchanged. I'm definitely still considering signals, be

Re: Signals in ManyRelatedManager

2007-09-12 Thread Ludovico Magnocavallo
Marty Alchin wrote: > I've come up with a considerably different approach to this, which > offers more flexibility, and also solves a problem I've had when it > comes to ManyToManyField. Basically, instead of dealing with signals, > and worrying about pre/post and whether or not you can prevent st

Re: Signals in ManyRelatedManager

2007-09-11 Thread Marty Alchin
I've come up with a considerably different approach to this, which offers more flexibility, and also solves a problem I've had when it comes to ManyToManyField. Basically, instead of dealing with signals, and worrying about pre/post and whether or not you can prevent stuff, I broke out some bits o

Re: Signals in ManyRelatedManager

2007-09-11 Thread Ludovico Magnocavallo
On Sep 11, 1:20 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > > I'm hoping to look into revamping some ManyToMany stuff during the > sprint, so it's possible that something like this might be made easier > after that. Note that the words "hoping", "possible" and "might" all > combine to indicate

Re: Signals in ManyRelatedManager

2007-09-11 Thread Ludovico Magnocavallo
On Sep 11, 1:20 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > > I'm hoping to look into revamping some ManyToMany stuff during the > sprint, so it's possible that something like this might be made easier > after that. Note that the words "hoping", "possible" and "might" all > combine to indicate

Re: Signals in ManyRelatedManager

2007-09-11 Thread Marty Alchin
On 9/11/07, Ludovico Magnocavallo <[EMAIL PROTECTED]> wrote: > I really need this feature, could you tell me if it has any chance of > being committed, or if there's a different way of doing the same thing > that I did miss? I'm hoping to look into revamping some ManyToMany stuff during the sprin

Signals in ManyRelatedManager

2007-09-11 Thread Ludovico Magnocavallo
In one of my apps, I have the need to track changes to M2M objects, and run some code when one of them gets added/deleted/cleared. I looked for a way to do this, and could not find any: the M2M Manager is created dynamically, thus I cannot extend its class or use a custom one; and since it can