Hi!

        def newForm(self):

                form = widgets.TableForm("FormType",
                        widgets.TextField(name="qtd", label="Capacidade:")
                        action      = "processForm",
                        submit_text = ...
                return dict(form=form)

        @validate(validators={"number"  : validators.Int()})
        def processForm(self, nome, descricao, qtd):

                tipoApto = sujeitos.TipoApartamento(idTipo=None, nome=nome, descricao=descricao, quantidadePessoas=qtd)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to