You can make a fate table in ram or in cache (DAL('sqlite:memory') or MEMDB),
On Saturday, 7 September 2013 16:49:12 UTC-5, Anthony wrote: > > I think he wants the list of dictionaries to be the data displayed in the > table, not to be used to construct a query. > > On Saturday, September 7, 2013 2:34:01 PM UTC-4, Massimo Di Pierro wrote: >> >> Something like this? >> >> def parse(table,d): >> return reduce(lambda a,b:a&b,[table[k]==v for k,v in d.iteritems()]) >> >> SQLFORM.smartgrid(parse(db.yourtable, {'name':'alex', 'age':'55'})) >> >> >> >> >> >> On Saturday, 7 September 2013 11:07:31 UTC-5, keiser1080 wrote: >>> >>> hi, >>> >>> It is possible tu use smartgrid with a list of dictionary in place of a >>> query? >>> Can i do something like this? >>> >>> smartgrid<http://www.web2py.com/examples/static/epydoc/gluon.sqlhtml.SQLFORM-class.html#smartgrid> >>> (table, constraints=None, linked_tables=None, links=None, links_in_grid= >>> True, args=None,user_signature=True, divider='>', breadcrumbs_class='', >>> **kwargs) >>> >>> smartgrid([{'name':'alex', 'age':'55'}, {'name':'albert', 'age':'44'}]) >>> >>> >>> >>> >>> >>> >>> -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.