moksha/templates/widget.mak | 4 ++--
moksha/templates/widgets.mak | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
New commits:
commit e26a8a927d3f8e12092de1d9462c21efe5aa9bd6
Author: Luke Macken <lmacken(a)redhat.com>
Date: Wed Mar 16 18:37:45 2011 -0400
Render our widgets with .display() to be TW1 and TW2 compat
diff --git a/moksha/templates/widget.mak b/moksha/templates/widget.mak
index c3ab842..0203691 100644
--- a/moksha/templates/widget.mak
+++ b/moksha/templates/widget.mak
@@ -1,9 +1,9 @@
<html>
<head></head>
- <body>${tmpl_context.widget(**options)}</body>
+ <body>${tmpl_context.widget.display(**options)}</body>
% if hasattr(tmpl_context, 'moksha_socket') and not isinstance(tmpl_context.moksha_socket, basestring) :
- ${tmpl_context.moksha_socket()}
+ ${tmpl_context.moksha_socket.display()}
% endif
</html>
diff --git a/moksha/templates/widgets.mak b/moksha/templates/widgets.mak
index e636937..ea87a80 100644
--- a/moksha/templates/widgets.mak
+++ b/moksha/templates/widgets.mak
@@ -4,12 +4,12 @@
</head>
<body>
% for widget in tmpl_context.widgets:
- ${widget(**options.get(widget, dict()))}
+ ${widget.display(**options.get(widget, dict()))}
% endfor
</body>
% if tmpl_context.moksha_socket:
- ${tmpl_context.moksha_socket()}
+ ${tmpl_context.moksha_socket.display()}
% endif
</html>