It is already a list, so don't put it inside another list. Should be: mySet = db.auth_user.id.belongs(session.myConnectionsList)
Anthony On Monday, October 2, 2017 at 6:40:10 PM UTC-4, Alex Glaros wrote: > > abbreviated display of creating list: > > session.myConnectionsList = [] > for r in iAmMemberConnectionsList: > session.myConnectionsList.append(r.role_owner_user_id_fk) > > Correct user id, 4, appears when I print the list > > [4L] > > Then, I try to create a query for grid by joining list to db, which causes > error: > > mySet = db.auth_user.id.belongs([session.myConnectionsList]) > > *<type 'exceptions.TypeError'> unhashable type: 'list'* > > see anything I'm doing wrong? > > thanks > > Alex Glaros > -- 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.