Michael Bayer escreveu:
> in 0.5, the attributes on classes vs. the columns on Tables are very
> different beasts now.
Got bitten by this too; I'm using MappedClass.c.keys() to serialize all
attributes of a class but don't want to write out every field name.
Should I use self._sa_class_manager.keys() instead?
items = dict()
for field in self._sa_class_manager.keys():
items[field] = getattr(self, field)
Is there a simpler way, perhaps?
Thanks,
--
Luis Bruno
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---