[scribus] Python MySQLdb
ale.comp_06 at xox.ch
Sat Jan 14 07:48:39 UTC 2012
> I've been experimenting with Python and MySQLdb.
> Previously I worked with Indesign and a custom CMS to import magazine
> articles via XML.
> Scribus and Python I see allows me to link directly to the DB - which
> is fantastic.
> However for the life of me I can't seem to get a grip on the MySQLdb
> I am trying to fetch a record from the db, but I am uncertain of the
> I've tried this:
> cur.execute("""SELECT text FROM table WHERE id=8""")
> But this does not seem to work.
> I'm not exactly sure how fetchone() and fetchall() works in this case.
if you send a testcase (table structure + sample data + short scribus
scripter that uses it) i can have a look at it.
More information about the scribus