List Info

Thread: Signals




Signals
user name
2006-08-31 15:54:47
Hi All:

I know that I want to make use of signals in my project.
I'm not sure
how to use them, though. It appears that the handling
function has to
have arguments like this: sender, instance, signal, *args,
**kwargs.
Can someone define these arguments?

Basically, I want to hook into the post_save signal of
several
different objects (User, ContentType, etc). Any help is
appreciated!

David Blewett


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Signals
user name
2006-08-31 17:04:53
On Aug 31, 2006, at 8:54 AM, David Blewett wrote:

> I know that I want to make use of signals in my
project. I'm not sure
> how to use them, though. It appears that the handling
function has to
> have arguments like this: sender, instance, signal,
*args, **kwargs.
> Can someone define these arguments?

I tried to document signals a bit on the wiki:

http://cod
e.djangoproject.com/wiki/Signals

However, because there's no official documentation (that I
know of),  
what's on the wiki is incomplete and potentially
inaccurate. I've  
used signals without any problems, however, so it should be
a good  
starting point.

See also Ian's article on signals here:

http://feh.holsman.net/articles/2006/06/13/django-signa
ls

-Tyson

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )