Opened 8 years ago

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

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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