But then vfield doesn't know it belongs to db.mytable?
And db.mytable doesn't clearly know it holds this field (via fields attr)
2017 m. kovas 2 d., ketvirtadienis 21:31:38 UTC+2, Anthony rašė:
>
> db.mytable.myvfield = Field.Virtual('myvfield', lambda r: ...)
>
> Anthony
>
> On Thursday, March 2, 2017 at 1:51:55 PM UTC-5, Jurgis Pralgauskis wrote:
>>
>> Before trying I wanted to ask, maybe there is some recipy.
>>
>> I think,I should assign vfield as table attr and append it to
>> table.fields?
>> And set vfield attrs: table, tablename?
>>
>> What else should I consider?
>>
>>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.