Hi there! :)
I'm trying to exploit the power of SQLFORM.grid with GAE but I'm having
some troubles.
All I want to do is to have a grid from a table (seems to be simple reading
the infinite examples on the web).
Here my table definition:
db.define_table('news',
> Field('title'),
> Field('body', 'text')
> )
>
Here the controller:
@auth.requires_login()
> def editnews():
> grid = SQLFORM.grid(db.news)
> return dict(grid=grid)
>
And here the view:
{{extend 'layout.html'}}
> <p>{{=grid}}</p>
>
Unfortunately when I load the view I get this error:
BadFilterError: invalid filter: __key__ filter value must be a Key;
> received None (a NoneType).
>
The errors seems to be in the definition of the grid, but I can't
understand what's wrong.
Can somebody help me? :)
Cheers,
David
--