Skip to content
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.

Deactivate notification by default and only activate selected one in the configuration #492

Closed
Natim opened this issue Oct 21, 2015 · 3 comments

Comments

@Natim
Copy link
Contributor

Natim commented Oct 21, 2015

No description provided.

@Natim Natim mentioned this issue Oct 21, 2015
8 tasks
@leplatrem
Copy link
Contributor

Could you please develop your point ?

I trust Pyramid to be fast enough when notifying event that have no listeners.

I thought you were going to write about plugging listeners per resource / per action...

@leplatrem
Copy link
Contributor

Meanwhile I slept, and it became clearer :)

Why not just add some parameters at the listener level ? The listener will then be in charge to read the filters in config and ignore some of the incoming events...

cliquet.listeners.redis.actions = update delete
cliquet.listeners.redis.resources = mushroom users

@Natim
Copy link
Contributor Author

Natim commented Oct 22, 2015

Yes this is exactly what I meant.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants