When you change the code to: {{=TABLE(*[TR(TD(A(r.user,_href=URL(args=(r.name,r.value)))) for r in testdb])}} watch the different brackets, there is no [] anymore, but () But now there is this error message:
response.write('\r\n', escape=False) ^ SyntaxError: invalid Syntax Am Sonntag, 2. Februar 2014 14:51:33 UTC+1 schrieb Multiplery: > Hey guys, > I have a problem with the for in usage. > > I want an function which creates, depending on a db, URLs. > So in the db is a table with the fields 'name', 'user' 'value'. > testdb = dba(dba.test.user== user).select(dba.test.ALL) > now, in the view i want those URLS: > A(user,_href=URL(Name + '/' + str(value))) > for every data which match the requiremtents. > Can someone help me? i doesn't get it done. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.