Hi,

I am looking at Dabo's ReportDesigner/Writer to do reporting (looked at others like PythonReports and Geraldo) but both have problems with large text blobs.

It wants the data as:

Dabo's reportwriter wants dataset-like structures, which is a sequence (list, tuple) of mappings (dict), where each key in the mapping is a field name, and each item in the outer sequence is a "record".

I managed to figure this out:

result = session.query(db.Cellarbook.avgpurchaseprice,
                       db.Drinkinfo.name)
result = result.join(db.Drinkinfo)

print result

for row in result.all():
    print row.__dict__['name']


Is using "row.__dict__" the correct way or are there other ways?

Best regards
Werner

--
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 sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to