Without seeing the traceback, I'm not sure what's causing that, but I see
at least two problems...
query = db(db.company.created_by.belongs(group_members))
>
>
The grid takes a Query, but the above is a Set object -- don't wrap the
query in db().
> grid = SQLFORM.grid(query, orderby=~db.company.created_on,
> create=False,details=False,editable=False,
> deletable=lambda row:
> (row.created_by.belongs(group_members)),
>
>
Field values within Row objects do not have .belongs() methods, so your
lambda will throw an error. Anyway, you don't need that, as all the rows in
the table will be created_by group_members, as the query already ensures
that.
Anthony
--
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.