+ form_attrs = dict(onsubmit='return doSubmit()')
+
+def get_cursos():
+ return [(0, u'---')] + [(fk1.id, fk1.shortrepr()) for fk1 in Curso.select()]
+
+class GrupoFiltros(W.TableForm):
+ class Fields(W.WidgetsList):
+ cursoID = W.SingleSelectField(label=_(u'Curso'), options = get_cursos, validator = V.Int(not_empty=True))
+ fields = Fields()