Hello everyone, I have a question regarding the FORM() Element: I have a variable table which contains a table that is build by a for loop from a DB Query.
able = TABLE(_class='data', _id='example') table.append(THEAD(TH('Severity'),TH('Status'), TH('Time submitted'), TH('Host'), TH('Message'))) for row in rows: table.append(TR(\ TD(row.severity.severity),\ TD(row.status.status),\ TD(row.events.datetime_submitted),\ TD(row.events.host),\ TD(row.events.message),\ TD(INPUT(_type="checkbox",_name=row.events.id)),\ _id=row.events.id, _class=row.severity.severity,\ )\ ) pass Then I have code as the following: form = FORM(_id='form_22', table, INPUT (_type="submit",_value="SUBMIT")) I get an error: SyntaxError: non-keyword arg after keyword arg for the (form = ) line. How can I add the table in the middle of the FORM? Thanks Sebastian --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---