Recently, I have been messing around with web.py and wanted to take something from db and return the Storage object to me. The code I use to call my information is:
db = web.database(dbn='sqlite', db='sqlfile.sqlite')
sely = db.select('carp', order="id ASC")
when sely starts, it displays the text like this:
<Storage {'lvl': 0, 'symbol': u'formb', 'logged': u'false', 'id': 1, 'display': u'Classic'}>
when you print, the storage line comes out. How can I get a dictionary from this object?
source
share