Opened 18 years ago

Closed 17 years ago

#3834 closed (invalid)

dispatcher.connect and custom parameters

Reported by: anonymous Owned by: Jacob
Component: Uncategorized Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

dispatcher(my_pretty_generic_func, signal = models.signals.post_save, sender = My_Class_1, attrs = {'field': image})
dispatcher(my_pretty_generic_func, signal = models.signals.post_save, sender = My_Class_2, attrs = {'field': banner})
dispatcher(my_pretty_generic_func, signal = models.signals.post_save, sender = My_Class_3, attrs = {'field': video})

"my_pretty_generic_func" can be then converter function for example. Or it can produce thumbnails. Or move the files to different folder which is dependant on the instance id.
Thanks.

Change History (1)

comment:1 by Simon G. <dev@…>, 17 years ago

Resolution: invalid
Status: newclosed

Can you provide more information please? Do you want dispatchers to have custom parameters?

Note: See TracTickets for help on using tickets.
Back to Top