Just found this bug too, but coincidentally now see that a fix was committed only this morning in trunk.
I updated and now all OK. Thanks to sunny and others for reporting and fixing! On Tuesday, 3 June 2014 15:41:13 UTC+1, sunny wrote: > > The following show_if condition gives me an "Not Implemented Error": > auth_table_user.position.show_if = > auth_table_user.employee_type.belongs(('employee', 'external')) > > I fixed it for me, with the following change in sqlhtml.py > if cond.op.__name__ == 'BELONGS' and > isinstance(cond.second,(list,tuple)): > to > if cond.op.__name__ == 'BELONGS' and > isinstance(cond.second,(set,list,tuple)): > > Is this a bug, or is there a different notation for belongs? > I tried > belongs('employee', 'external') > belongs(('employee', 'external')) > belongs(['employee', 'external']) > cond.second is always a Set. > -- 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.