I do not have a strong opinion on this. If other people feel it should be changed we can, as it is an undocumented behavior.
On Tuesday, 22 May 2012 22:03:49 UTC-5, weheh wrote: > > LOL. I mean, we could get quantum and say everybody is a member of None > (nothing), which is what web2py appears to say. I'm OK with that, but most > people bump into a wall when they try to go thru 2 doors at once. So, since > we experience classical reality, I think "nobody belongs to nothing" is the > intuitive answer for most folks and a better default behavior for web2py. > > So it should probably be False. I ran into the case accidentally because > of an undefaulted field that turned up None, but was supposed to contain > membership info. It caused a confusing situation in my code. > > On Tuesday, May 22, 2012 8:20:21 PM UTC+8, Massimo Di Pierro wrote: >> >> I never thought of that. Does the set of groups I am part of include the >> empty set? >> >> On Monday, 21 May 2012 23:40:21 UTC-5, weheh wrote: >>> >>> I'm seeing auth.has_membership(None) == True. How can this be a good >>> thing? >>> >>