<s> import tw2 . core <EOL> import tw2 . forms <EOL> import tw2 . sqla <EOL> import tw2 . dynforms <EOL> import model <EOL> class Index ( tw2 . sqla . DbListPage ) : <EOL> entity = model . Movie <EOL> title = '<STR_LIT>' <EOL> newlink = tw2 . forms . LinkField ( link = '<STR_LIT>' , text = '<STR_LIT>' , value = <NUM_LIT:1> ) <EOL> class child ( tw2 . forms . GridLayout ) : <EOL> id = tw2 . forms . LinkField ( link = '<STR_LIT>' , text = '<STR_LIT>' ) <EOL> title = tw2 . forms . LabelField ( ) <EOL> class Movie ( tw2 . sqla . DbFormPage ) : <EOL> entity = model . Movie <EOL> title = '<STR_LIT>' <EOL> redirect = '<STR_LIT:/>' <EOL> resources = [ tw2 . core . CSSLink ( filename = '<STR_LIT>' ) ] <EOL> class child ( tw2 . dynforms . CustomisedTableForm ) : <EOL> title = tw2 . forms . TextField ( validator = tw2 . core . Required ) <EOL> director = tw2 . forms . TextField ( ) <EOL> genre = tw2 . sqla . DbCheckBoxList ( entity = model . Genre ) <EOL> class cast ( tw2 . dynforms . GrowingGridLayout ) : <EOL> character = tw2 . forms . TextField ( ) <EOL> actor = tw2 . forms . TextField ( ) <EOL> tw2 . core . dev_server ( repoze_tm = True ) </s>
