Mistake in my first paragraph
table why not use
On Mon, Sep 12, 2011 at 4:35 PM, Richard Vézina
wrote:
> It seems to me correct except for the view, if you want a table not use :
>
> Controller :
> table = crud.select(db.data)
> return dict(table=table)
>
>
>
> View :
> {{=table}}
>
>
> You can
It seems to me correct except for the view, if you want a table not use :
Controller :
table = crud.select(db.data)
return dict(table=table)
View :
{{=table}}
You can also make your select constraint in the controller :
query = (db.data.FIELD == SOMETHING)
table = crud.select(db.data, query
I have two tables:
-
db.define_table('providers',
Field('name'),
Field('email'),
Field('tel')
db.define_table('data',
Field('dataowner', db.auth_user, default=auth.user_id,
writable=False, readable=
3 matches
Mail list logo