Rich Shepard wrote:
> My application is written using wxPython, but not the Dabo structure. I'd
> like to use the ReportDesigner to initially lay out the rfxml, which I'll
> finish by hand.
Sounds reasonable.
> In the reports.py module of my application, I have the code to create a
> list of dict_cursors for ReportDesigner. But, running the application does
> not make that object visible to the independently-run ReportDesigner.
You can't do something like:
from dabo.dReportWriter import dReportWriter
from myReports import getReportCursor
myCursor = getReportCursor()
rw = dReportWriter(ReportFormFile="path/to/your.rfxml",
OutputFile="/tmp/out.pdf",
Cursor=myCursor)
rw.write()
?
> I would like to see an example of a dictionary cursor that RD accepts as
> input. This will allow me to query the sqlite3 database, extract the table
> data, and manually prepare the cursor.
myCursor = ({"id": 1, "first_name": "paul"},
{"id": 2, "first_name": "ed"},
{"id": 476, "first_name": "riche"})
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users