The rule is simple. All options that belong to both grid and smartgrid (except args) can take a dictionary in smartgrid. If a dictionary is passed, the value is passed the grid, in correspondance to a key == tablename.
On Monday, 14 January 2013 17:50:58 UTC-6, Kostas M wrote: > > > Fantastic! > And since we are on the topic, can we clarify also the use of dictionaries > for the callbacks in the case of smartgrid? Which options can take a dict > of functions, and which not? E.g. it seems ondelete can't take a > dictionary, while editable can: > > grid=SQLFORM.smartgrid(db.person,linked_tables=['dog'], > editable=dict(person=person_edit, dog=dog_edit), > ) > > > > > --

