SQLFORM.grid(db.locatie,query=db.locatie.mutatie_user_id==auth.user.id)

should be

SQLFORM.grid(query=db.locatie.mutatie_user_id==auth.user.id)

it will figure out the table automatically

On Aug 21, 7:19 am, JaapP <[email protected]> wrote:
> Hi Massimo,
>
> i tried to play a little bit with the 'query=...' part but i can't get
> it working;
>
> #CONTROLLER
> def locaties():
>     locaties =
> SQLFORM.grid(db.locatie,query=db.locatie.mutatie_user_id==auth.user.id)
>     return dict(locaties=locaties)
>
> Error:
>    locaties =
> SQLFORM.grid(db.locatie,query=db.locatie.mutatie_user_id==auth.user.id)
> TypeError: grid() got multiple values for keyword argument 'query'
>
> i tried to simplify the query, put () around the query but still the
> same error message.
> Do you have any idea what i'm doing wrong?
>
> thanks for the great framework!!
>
> Jaap

Reply via email to