> I think in this case they won't be strings since I read the numbers from a XML and they don't have the '+' character
So what? You should future proof the app. Some day there might be extensions in India or something. > Not all the supervisors.I want to get the extensions of a particular supervisor Do you mean the extensions of the persons he supervises? If so: the_supervised = db(db.auth_user.Supervisor == ParticularSupervisor.id)._select(db.auth_user.id) extensions_of_the_supervised = db(db.Extension.Person.belongs(the_supervised)).select() This will give you the extensions of everyone that is supervised by this person. -- 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.