Opened 10 years ago

Closed 10 years ago

#3834 closed (invalid)

dispatcher.connect and custom parameters

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

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 Changed 10 years ago by Simon G. <dev@…>

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