I have a list containing record id's and need to select those records from a table. then I need to count how many different values are contained in the fields and for each select the first record of an other table.
ids = session.people.keys() persons = {} for id in ids: persons[id]=db(db.people.id==id).select()[0] the rows contain a field user_name now I want to check(count) how many different user_name's are in my selected records. (and retrieve the first record, with a bool set to False, from db.parking for each. db.parking records contain a bool which I want to toggle to true) can someone help me (with at least the counting part)? -- 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/groups/opt_out.