moksha/controllers/root.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 4aed012eb2c3a6cca97f68d600b26881949dc4bd
Author: Luke Macken <lmacken(a)redhat.com>
Date: Thu Jul 23 22:43:26 2009 -0400
Fix a bug that occurs when we have no widgets or menus installed
diff --git a/moksha/controllers/root.py b/moksha/controllers/root.py
index f39b195..83040b8 100644
--- a/moksha/controllers/root.py
+++ b/moksha/controllers/root.py
@@ -67,7 +67,7 @@ class RootController(BaseController):
if 'default_menu' in moksha.menus:
tmpl_context.menu_widget = moksha.menus['default_menu']
else:
- tmpl_context.menu_widget = ''
+ tmpl_context.menu_widget = lambda: ''
#tmpl_context.contextual_menu_widget = moksha.menus['contextual_menu']
return dict(title='[ Moksha ]')
Show replies by date