http://web2py.com/books/default/chapter/34/07#SQLFORM.grid-and-SQLFORM.smartgrid-(experimental)
I tried examples , and one of them gives err: With SQLFORM.grid you can list all parents: SQLFORM.grid(db.parent) all children: SQLFORM.grid(db.child) and all parents and children in one table: *SQLFORM.grid(db.parent,left=db.child.on(db.child.parent=db.parent.id)) # this causes ERR: * <type 'exceptions.SyntaxError'> keyword can't be an expression (default.py, line 46)Versionweb2py™(2, 4, 2, 'stable', datetime.datetime(2013, 3, 4, 3, 26, 21))PythonPython 2.7.3: /usr/local/bin/uwsgi (prefix: /usr/local)Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. Traceback (most recent call last): File "/home/jurgis/web2py/gluon/restricted.py", line 211, in restricted ccode = compile2(code, layer) File "/home/jurgis/web2py/gluon/restricted.py", line 194, in compile2 return compile(code.rstrip().replace('\r\n', '\n') + '\n', layer, 'exec') File "/home/jurgis/web2py/applications/smartgrid/controllers/default.py" <https://jurgis.pythonanywhere.com/admin/default/edit/smartgrid/controllers/default.py>, line 46 grid = SQLFORM.grid(db.parent,left=db.child.on(db.child.parent=db.parent.id)) SyntaxError: keyword can't be an expression -- --- 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.