3 messages in com.googlegroups.sqlalchemy[sqlalchemy] Row as dictioanry
FromSent OnAttachments
bri...@equalslashed.net30 Jul 2008 19:07 
az...@svilendobrev.com30 Jul 2008 23:13 
dasacc2231 Jul 2008 10:17 
Subject:[sqlalchemy] Row as dictioanry
From:bri...@equalslashed.net (bri@equalslashed.net)
Date:07/30/2008 07:07:19 PM
List:com.googlegroups.sqlalchemy

H have my standard reflector class User and I want to be able to access the instance of this class with my row result as a dictionary because sometimes to pass variables to template you need to have it in dictionary format so I basically want my whole User object instance to be like a dictionary and when I print it out i want it to look like a dictionary, but I also want to be able to access it's properties like a normal object as well. The ideal solution would be to be able to call dict(object) and get a dictionary. I've already looked at the documentation and tried several things and everytime I got a blank dictionary ({}) but I could still access my object properties like normal. I'm not sure what I'm doing wrong.