Connecting multiple signals to a single callable?


what may be the best way to connect multiple signals to a single handler? I have tried the following, that does seem to work, but are there better intended ways?

def _do_something(event, **kwargs):

Thanks, m

Please don’t use the decorators in plugins; self.connect(...) is the way to go there. And simply call it multiple times with the same function but different signals.

For the decorator version (ie when using signals in the indico core) what you did was the correct solution btw.

OK, good. That (non-decorator) syntax is anyhow more flexible, so preferable anyway. I was going by the examples how to connect signals I saw in the (core) code, as did not find any in the docs. Thanks.