Still get the same error (only replaced the objects.py file)
As before the error shows up if I list the virtual field in the fields
parameter. If fields=None then no error, but all fields are shown.
Another isue (might be related) is if you have a compute field, and edit a
record you can't save it. For example directly from the book.:
Field('full_name',compute=lambda r: r['first_name']+' '+r['last_name']),
This also worked before (2.14.06)
Thanks
On Sunday, December 3, 2017 at 6:31:06 PM UTC+1, Massimo Di Pierro wrote:
>
> I just fixed this in the master branch of pydal. Can you please confirm it
> is fixed for you?
>
> On Saturday, 2 December 2017 18:26:12 UTC-6, icodk wrote:
>>
>> Virtual field definition generate error in
>> 2.16.1-stable+timestamp.2017.11.14.05.54.25
>> Works fine in 2.14.06
>> my field definition is:
>>
>> db.zone.inside = Field.Virtual('inside', lambda row: 1)
>>
>> I get the following error:
>>
>> 'FieldVirtual' object has no attribute 'listable'
>>
>> The field is defined just before a call to grid =
>> SQLFORM.smartgrid(db.zone,...
>>
>> Thanks for any help
>>
>>
--
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.