Web2py Version 2.7.4-stable+timestamp.2013.10.14.15.16.29
On 20 November 2013 16:26, Tim Richardson <t...@growthpath.com.au> wrote: > What version of web2py? > > > On Thursday, November 21, 2013 5:26:23 AM UTC+11, Eduardo Cruz wrote: >> >> 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 a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/tTWYuhhGr8I/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- Eduardo Cruz - 829 775 4605 -- 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.