changeset 585 | 903890857ed8 |
parent 493 | 6976c4d8d0ac |
child 586 | a4a36b06a870 |
--- a/app/soc/views/sitemap/sidebar.py Mon Nov 24 22:34:56 2008 +0000 +++ b/app/soc/views/sitemap/sidebar.py Tue Nov 25 17:18:57 2008 +0000 @@ -25,6 +25,15 @@ SIDEBAR = [] -def addMenu(pages): +def addMenu(callback): global SIDEBAR - SIDEBAR.append(pages) + SIDEBAR.append(callback) + +def getSidebar(): + sidebar = [] + + for callback in SIDEBAR: + menu = callback() + sidebar.append(menu) + + return sidebar