Sorry I didn't see this question earlier.

The "on" attribute is on the Table object.  If you look at the code, I use 
variables like

dbt = db.times

This allows me to use "dbt.xxx" to access the Table object directly.  I 
find it a convenient syntactic shorthand because I'm always using it to get 
to Fields and other table-related items.

So, to reiterate, the "on" function is in the Table, not Expression.

-- Joe


On Wednesday, February 13, 2019 at 11:22:46 AM UTC-8, Skiros wrote:
>
> Hello !
> Very interesting !!!
>
> I'm trying to reproduce this behaviour but I'm getting this error 
> "Expression object has no attribute on". What version of w2p are you using ?
>

-- 
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.

Reply via email to