DIRACGrid/DIRAC — pull request #1122 by ubeda (2012-12-19 09:26:23+00:00)
Title: FIX: state machine

Its design was too complicated, and not exactly correct.
Now, given a State and a candidate for a future state, returns a single state which is the candidate if no restriction applies, otherwise returns the default state.