I think, you need to delete the old session files of your application.
I had the same problem.

Am Mittwoch, 20. November 2013 19:26:23 UTC+1 schrieb Eduardo Cruz:
>
> Whe I use a table that has some a virtual field sqlform.grid does not works
>
> <type 'exceptions.AttributeError'> 'Row' object has no attribute 'unknown'
>
> and that happens only when the virtual field is uncommented
>
> def get_category_list(post):
>     category_id_list =  db(db.Post_in_category.post_id == post.id).select(
> db.Post_in_category.category_id)
>     category_list = []
>     for category_id in category_id_list:
>         category_list.append(db.Category[category_id["category_id"]])
>     return category_list
>
> db.Post.category_list = Field.Virtual(
>     lambda row: get_category_list(row.Post)
> )
>
>
>
> what am I doing wrong?
>
>

-- 
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/groups/opt_out.

Reply via email to