Re: Testing if a receiver is connected to a signal

2011-05-05 Thread Vinicius Mendes
Boa. Funciona para resolver esse problema. Atenciosamente, Vinicius Mendes Engenheiro de Computação Globo.com On Thu, May 5, 2011 at 1:33 PM, Bernardo Fontes wrote: > Hello everybody, > > I resolved this problem by looking at Djangos Signal's code and > understanding

Re: Testing if a receiver is connected to a signal

2011-05-05 Thread Bernardo Fontes
Hello everybody, I resolved this problem by looking at Djangos Signal's code and understanding its structure. The signal has an attribute called receivers which has stored references to its receivers function that were connect to it. When the send function is called, the signal just call this

Re: Testing if a receiver is connected to a signal

2011-04-19 Thread Bernardo Fontes
Hi, I'm having this problem too. Does anyone knows a good strategy to handle this problem? On 21 fev, 17:50, Vinicius Mendes wrote: > Hi, > > I want to test if a receiver function is connected to a signal in django, > but I don't want other receivers from other apps to be

Testing if a receiver is connected to a signal

2011-02-21 Thread Vinicius Mendes
Hi, I want to test if a receiver function is connected to a signal in django, but I don't want other receivers from other apps to be called when my test runs. I thought of verifying if my callback function is in the receivers list of the signal, but this list stores the receivers in a strange