Thanks. a ton. again.
I had spent about 5 hours doing `dir()` on `Book` and `book` , with no luck
-- checking every object for dicts, `list()`ing it when appropriate, etc.
I ended up focusing quite a bit on the mapped_table and column properties,
because thats where I expected them to be. I jumped into the source to
find hints a few times, but also no luck. i was very close to smacking my
head against the wall.
def get_deferred_columns( saClass ):
defers = []
for i in class_mapper(saClass).column_attrs:
if i.deferred :
# assume we only need the first list element
defers.append( i.columns[0].name )
return defers
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.