moksha/api/widgets/iframe.py | 10 ++++++++++
1 file changed, 10 insertions(+)
New commits:
commit 9541ef75f9a06516d708a62c13bbfa165bdcb43b
Author: Luke Macken <lmacken(a)redhat.com>
Date: Wed Apr 15 11:19:47 2009 -0400
Add a simple iframe widget
diff --git a/moksha/api/widgets/iframe.py b/moksha/api/widgets/iframe.py
new file mode 100644
index 0000000..74da0ca
--- /dev/null
+++ b/moksha/api/widgets/iframe.py
@@ -0,0 +1,10 @@
+from tw.api import Widget
+
+class IFrameWidget(Widget):
+ params = ['id', 'url']
+ template = """
+ <iframe id="${id}" src="${url}" width="100%"
height="100%">
+ <p>Your browser does not support iframes.</p>
+ </iframe>
+ """
+ engine_name = 'mako'
Show replies by date