> > Building a table by hand was what I did in one of my first web2py > projects. Not hard, but not as convenient as the tools can make it ... for > normal cases, at least. > > I'll see if I can get back to the "nearly working" Storage example, and > using the constructor more knowledgeably.. The rowed = Rows() example > foundered on not being able to do rowed.append(row) or rowed.add(row) or > rowed[index] > = row. The latter was working for the Storage example. >
The Rows.records is a list of the Row objects, so: rowed.records.append(row) Also, if you create a second Rows object (possibly containing just a single new row), you can do: rowed &= new_rows The latter method is a bit safer, as it is part of the public API and will therefore remain backward compatible. Anthony -- 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/d/optout.