I think the first argument should be either a table or a query, but don't 
pass a table and a query as the first two arguments.
 
Anthony

On Wednesday, August 24, 2011 10:09:22 AM UTC-4, spyker wrote:

> The following is not working.  What is the syntax suppose to be?
>
> def journal_grid():
>     query = db.akb_journal.publisher == db.akb_publisher.uuid
>     fields = [db.akb_journal.title,db.akb_journal.standard_name,
>               db.akb_journal.issn, db.akb_journal.abbrev_iso,
>               db.akb_publisher.publisher, db.akb_journal.subject]
>     form = SQLFORM.grid(db.akb_journal,query, fields,
>                          deletable= False)
>     return dict(form = form)
>
> Errors: query is not iterable and the field list does not have a 
> table-object.
>
> Regards
> Johann
>
> -- 
>  May grace and peace be yours in abundance through the full knowledge of 
> God and of Jesus our Lord!  His divine power has given us everything we need 
> for life and godliness through the full knowledge of the one who called us 
> by his own glory and excellence. 
>                                                     2 Pet. 1:2b,3a
>
>

Reply via email to