Unify and polish page titles

Change-Id: I67dbb0dfaaac0ba506920f07013fbd3b66da786d
This commit is contained in:
Ilya Shakhat
2015-10-09 17:16:32 +03:00
parent dc4a2bfcb5
commit e4c626d706
18 changed files with 43 additions and 53 deletions

View File

@@ -154,6 +154,14 @@ def _init_project_types(vault):
runtime_storage_inst = vault['runtime_storage']
project_types = runtime_storage_inst.get_by_key('project_types') or {}
# add ref from child to parent
parent_pt = None
for pt in project_types:
if pt.get('child'):
pt['parent'] = parent_pt
else:
parent_pt = pt
vault['project_types'] = project_types
vault['project_types_index'] = dict((pt['id'], pt) for pt in project_types)