Please, ignore the last paragraph after the word "Thanks" in the last message. So, fixing:
Any tips? What could I do to "form.accepts" to get just the first object (SELECT) and not a tuple (SELECT and A)? Do I have to remove the A object ("add" link) from the <TD> where is the SELECT? :-/ Thanks. On Oct 16, 3:53 pm, Renato-ES-Brazil <caliari.ren...@gmail.com> wrote: > Any tips? What could I do to "form.accepts" to get just the first > object (SELECT) and not a tuple (SELECT and A)? > > Do I have to remove the A object ("add" link) from the <TD> where is > the SELECT? :-/ > > Thanks. > > Does it happens because "form.accepts" trying get some attributes, > like "errors", from the "add" links? > > On Oct 15, 9:32 pm, Renato-ES-Brazil <caliari.ren...@gmail.com> wrote: > > > Hi guys! > > > Another problem found: > > - The "form.accepts" fails when I trying submit the form with the > > links "add". > > > Some lines shown in the log: > > if form.accepts(request.vars, session): > > File "/home/renato/Desenvolvimento/web2py/gluon/sqlhtml.py", line > > 777, in accepts > > self.trows[fieldname][1][0].errors = self.errors > > AttributeError: 'tuple' object has no attribute 'errors' > > > When web2py get the self.trows[fieldname][1], actually, now, it's > > taking two objects (the select and the "add" link): > > <td>(<gluon.html.SELECT object at 0xa0f41ec>, ' ', > > <gluon.html.A object at 0xa100a6c>)</td> > > > Any tip? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---