Re: Signal does not run
resolved.
I was not recording the other signs, for this reason he was never called.
transaction_canceled.connect(on_canceled)
transaction_waiting.connect(on_waiting)
...
Thanks
Em segunda-feira, 18 de novembro de 2013 15h38min54s UTC-2, Ricardo escreveu:
Hi. I have a problem in the signal, because it fails to run.The print "Hello word" is not displayed. Can anyone help me identify my mistake? Thanksfrom djpg.signals import transaction_paiddef on_paid(sender, **kwargs):transaction = kwargs.pop('transaction')ref = transaction['reference']print "HELLO WORD"# ...transaction_paid.connect(on_paid)
Ricardo
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f0d42b59-4ab8-47e6-8e42-1af2373315f3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home