Hi, has the behavior here
http://www.sqlalchemy.org/trac/wiki/FAQ#Whatsthebestwaytofigureoutwhichattributesarecolumnsgivenaclass
changed in 0.5?
I'm trying that and getting
AttributeError: iterate_properties
this is my code, so far:
klass = model.User
def add_user():
obj = klass()
mapper = class_mapper(klass).columns
print mapper,type(mapper)
for column in mapper.iterate_properties:
raw_input('value for %s'%column)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---