[gen] Simplified management and rendering of phases.

This commit is contained in:
Gaetan Delannay 2012-12-07 11:23:08 +01:00
parent 823ada17da
commit 68ae08b75a
7 changed files with 10 additions and 29 deletions

View file

@ -795,9 +795,9 @@ class BaseMixin:
if not res[i]['pages']:
del phases[res[i]['name']]
del res[i]
# Then, compute status of phases
# Compute next/previous phases of every phase
for ph in phases.itervalues():
ph.computeStatus(res)
ph.computeNextPrevious(res)
ph.totalNbOfPhases = len(res)
# Restrict the result to the current phase if required
if currentOnly: