The error seems to indicate that you haven't set up your database properly. Have you got a database installed, and have you done the proper uncommenting/editing of dev.cfg/devcfg.py or prod.cfg/prodcfg.py?
the .cfg files are for TG 0.8, the .py files are for SVN, use whatever file is there... Your query will look like this: for all results: results=list(HPD_HelpDesk.select()) for individual levels: results = list(HPD_HelpDesk.select(HPD_HelpDesk.q.priority==1)) you could also do comparison with < or <=, to get all priorities greater than a given level. Clear enough? -Mike

