It is a Method Field, Field.Method('do_someting', ..... )
On Thursday, August 6, 2015 at 10:55:22 PM UTC-4, Massimo Di Pierro wrote: > > what is out.dog.do_something()? > Is it an example of a VirtualMethod? > > On Thursday, 6 August 2015 16:36:13 UTC-5, Umpei Kurokawa wrote: >> >> I'm having problems after upgrading web2py to 2.11.2 from 2.9.10, that I >> wasn't getting before. >> >> The problem appears to happen when I make a select call with an inner >> join, and than trying to make calls to a Field Method associated with that >> table. I get this error: >> >> So for example I am doing something like : >> >> out = db((db.breed.id == >> db.dog.breed)).select().first() >> >> >> out.dog.do_something() >> >> This will fail with the below error >> >> File >> "/home/ukurokawa/Documents/web2py_2112/gluon/packages/dal/pydal/helpers/classes.py", >> >> line 348, in __getattr__ >> >> raise AttributeError >> AttributeError >> >> -- 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.