gitonomy/gitonomy — pull request #10 by alexandresalome (2012-10-03 08:25:10+00:00)
Title: Gitonomy event dispatcher

Aim of this PR is to create a dedicated event dispatcher for Gitonomy events (project create, project delete, project push).

This dispatcher has an ``dispatchAsync``, allowing to dispatch events asynchronously, avoiding computations on runtime:

* Creation of events after a push
* Creation of a repository on project creation
* Deletion of a repository on project deletion

These asynchronous events are handled in different ways (strategy defined by *Storage*). For example, in test environment, no asynchronous thing is done : directly dispatched.

We can think of mails too, but it's a little bit different...

Anyway, it's a WIP, left to do:

* Lock events on *MySQLStorage* while processing them
* Change events to this event-dispatcher
* Create an agent to process events asynchronously
* Think of a ``kernel.terminate`` way for doing this