moksha/templates/widget.mak | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
New commits: commit 18e2816e33d45b30b118b8185d7a5c179398c12f Author: Luke Macken lmacken@redhat.com Date: Mon May 23 01:53:36 2011 -0400
Call the TW1/TW2 display() method if it exists on the widget first
diff --git a/moksha/templates/widget.mak b/moksha/templates/widget.mak index 0203691..f329070 100644 --- a/moksha/templates/widget.mak +++ b/moksha/templates/widget.mak @@ -1,6 +1,12 @@ <html> <head></head> - <body>${tmpl_context.widget.display(**options)}</body> + <body> + % if hasattr(tmpl_context.widget, 'display'): + ${tmpl_context.widget.display(**options)} + % else: + ${tmpl_context.widget(**options)} + % endif + </body>
% if hasattr(tmpl_context, 'moksha_socket') and not isinstance(tmpl_context.moksha_socket, basestring) : ${tmpl_context.moksha_socket.display()}
moksha-commits@lists.fedorahosted.org