Commits

Ralph Bean committed 67e36f9

Added synonym for src.

Comments (0)

Files changed (2)

 
 setup(
     name='tw2.etc',
-    version='2.0a2',
+    version='2.0a3',
     description='Random extra widgets for ToscaWidgets 2.',
     long_description = open('README.rst').read().split('.. split here', 1)[1],
     author='Ralph Bean',

tw2/etc/widgets.py

     height = twc.Param(default='100%', attribute=True)
     width = twc.Param(default='100%', attribute=True)
     src = twc.Param("Source for the iframe", attribute=True)
+    url = twc.Param("Synonym for src", default=None)
+
+    def prepare(self):
+        if self.url:
+            self.src = self.url
+        super(IFrameWidget, self).prepare()