Scripter/Databases

From Scribus Public Wiki

Revision as of 05:58, 22 September 2005 by Mhanski (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search
This article is part of the Scripts & Plugins series.
Scripter Plugins Other

[edit] Scripter and relational databases

There are no specialities with using databases in the Scribus Scripter. You could use DB as in normal standalone script or application.

PEP-0249 - Python database API v.2.

There are various modules for database access. Remember that the module must be instaled in/with the Python version which is used/compiled in Scribus! I've tested personaly with 100% success: DCOracle2 and MySQLdb.

[edit] An Example

There is an common database example since 1.2.2 and 1.3cvs versions - see. SCRIBUSROOT/share/scribus/samples/sample_db_usage.py docstring (e.g. via Script/About Script... menu) or script content. You'll need to set right connection parameters in the script file.

Personal tools