On Tuesday, December 18, 2018 at 8:40:34 AM UTC-8, Dave S wrote: > > In my case, either a list:string or a list:reference (tags, versus a list > of items that use that tag). > > If you do either rowu.update_record(usestage = ....) or rowt.updte_record(tag > = ...), then the "...." has to include the old value, or you end up with > only the new value? And siimilary for > db(db.taggedtable.tags.contains(tag1)),update(tag= > ...) and db(db.usingtable.usestage.contains(uses1)).update(usestage = > ... ) ? > > > Thanks > /dps >
I see that in the rowu/rowt case, rowu.usestag and rowt.tag are Python list objects (or derived class instances), and that newuses = rowu.usestag.append(uses2) rowu.update_record(usestag = newuses) works. I haven't explored farther with db(q).update(...) form yet. /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 [email protected]. For more options, visit https://groups.google.com/d/optout.

