What am i missing with these statement:

def getDict():
   return {(o.id:o.name for o in db(db.table).select()}

or

def getDict():
   return dict((o.id:o.name for o in db(db.table).select())

getting same syntax error for both, whats the correct way of returning a
dictionary?

Teddy L.

-- 



Reply via email to