Added a new level of configurability in navigation: allow to hide/show every button on every page + bugfixes in page/phase navigation.

This commit is contained in:
Gaetan Delannay 2010-10-19 10:47:42 +02:00
parent 3cfc24fe02
commit 2aedf8c88a
12 changed files with 213 additions and 165 deletions

View file

@ -73,8 +73,8 @@ class ClassDescriptor(Descriptor):
'''Gets the phases defined on fields of this class.'''
res = []
for fieldName, appyType, klass in self.getOrderedAppyAttributes():
if appyType.phase not in res:
res.append(appyType.phase)
if appyType.page.phase not in res:
res.append(appyType.page.phase)
return res
class WorkflowDescriptor(Descriptor):