On Monday, November 28, 2016 at 8:46:03 PM UTC-8, Anthony wrote: > > 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. >> > > 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 (see > http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Combining-rows). > > Anthony >
Thank you. This is good stuff, and no matter how much time I spend in the book, there are parts I lose track of. No doubt I have a loose part. /dps -- 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.