If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!


  • 0
    mrfreeze  14 years ago
    Not a dumb question. Try this:
    db.expenses.id_category.represent = lambda category: category.name
    query = (db.expenses.id_category==db.category.id) & (db.expenses.id_users=='user')
    grid.datasource = db(query)
    

Commented on:

This is a module that lets you build a table on the server that supports paging, sorting, editing and totals easily. It requires no javascript or sessions to work.

Hosting graciously provided by:
Python Anywhere