Added a new diagnostics tab under the tools menu

This commit is contained in:
Roberto Rosario
2011-03-21 01:00:56 -04:00
parent 1271037974
commit 447b2f2817
8 changed files with 59 additions and 4 deletions

7
apps/main/api.py Normal file
View File

@@ -0,0 +1,7 @@
diagnostics = {}
def register_diagnostic(namespace, title, link):
namespace_dict = diagnostics.get(namespace, {'title':None, 'links':[]})
namespace_dict['title'] = title
namespace_dict['links'].append(link)
diagnostics[namespace] = namespace_dict