On Friday, June 8, 2018 at 5:49:07 PM UTC-4, Mark Billion wrote: > > Ive checked the docs and am sure I am missing it, but can someone please > confirm or deny: If I iterate a row class attribute via another class > method, updates applied by that method will will update the underlying row > attribute? > > For example: > > __init__: > self.dbobj = db(db.foo.bar>0).select() > > def abc: > for x in self.dbobj: > x.attribute = "a" > > My question is whether the self.dbobj attribute characteristic is now set > to "a" for all records until the object is either destroyed or reupdated. >
Yes. -- 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.