moksha/templates/widgets.mak | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 20a8367d3af12a65423daa0f962f4c43320f6fc2
Author: Luke Macken <lmacken(a)redhat.com>
Date: Sun Apr 17 07:39:46 2011 -0400
Make moksha.templates.widgets work properly without the moksha_socket
diff --git a/moksha/templates/widgets.mak b/moksha/templates/widgets.mak
index ea87a80..5aa3399 100644
--- a/moksha/templates/widgets.mak
+++ b/moksha/templates/widgets.mak
@@ -8,7 +8,7 @@
% endfor
</body>
- % if tmpl_context.moksha_socket:
+ % if hasattr(tmpl_context, 'moksha_socket') and not
isinstance(tmpl_context.moksha_socket, basestring) and tmpl_context.moksha_socket:
${tmpl_context.moksha_socket.display()}
% endif
Show replies by date