Commits

Ralph Bean committed 88e3817

Getting Fancy.

Comments (0)

Files changed (1)

myapp/myapp/widgets.py

 import tw2.core
 import tw2.forms
 import tw2.sqla
+import tw2.dynforms
 
 import myapp.models
 
     resources = [tw2.core.CSSLink(link='static/myapp.css')]
     redirect = '/list'
     title = 'Movie'
-    class child(tw2.forms.TableForm):
+    class child(tw2.dynforms.CustomisedTableForm):
         action = '/tw2_controllers/movie_submit'
         id = tw2.forms.HiddenField()
         title = tw2.forms.TextField(validator=tw2.core.Required)
         director = tw2.forms.TextField()
         genres = tw2.sqla.DbCheckBoxList(entity=myapp.models.Genre)
-        class cast(tw2.forms.GridLayout):
-            extra_reps = 5
+        class cast(tw2.dynforms.GrowingGridLayout):
             character = tw2.forms.TextField()
             actor = tw2.forms.TextField()