Issue #5 resolved

Internal Signalling System

Armin Ronacher
created an issue

Solace needs an internal signalling system so that we can react to changes on the models. For example at the moment the badges are awarded synchronously by calling the {{{try_award}}} function in the models.

This is not very flexible and should be changed. The best way would be providing a signalling system that can temporarily subscribe for signals.

A proof-of-concept implementation for this is in my [[http://bitbucket.org/mitsuhiko/solace-queued-badges/|solace-queued-badges]] repository, but it's also implementing some sort of broken queue there.

The main problem is that we have to hook both into the SQLAlchemy mapper and session for useful signals. Because the kind of signal we're interested is a signal that notifies the code about new models or change models right after the session was committed.

Comments (3)

  1. Log in to comment