On 5 Wrz, 15:55, Johann Spies <johann.sp...@gmail.com> wrote:
> Hallo Brushek,
>
> I am also trying out SQLFORM.grid/smartgrid and learn as I go.
>
> @auth.requires_login()> def dodajserwer():
> >    response.flash = T('Serwery')
> >    form=SQLFORM.grid(db.serwery)
>
> Apparently the usage is either SQLFORM.smartgrid(table) or
> SQLFORM.grid(query)
>
> Try   'form = SQLFORM.smartgrid(db.serwery)'

I tried this one before posting...

>
> or    'form = SQLFRORM.grid(db(db.serwery.id > 0))'
>

... and this one doesn't change the situtaion, the error is the same.

regards
Brushek

Reply via email to