Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Variables
sample_db_usage Namespace Reference

Variables

string hostname = 'server.foo.org'
string dbname = 'name'
string username = 'username'
string password = 'password'
tuple conn = MySQLdb.connect(passwd=password, db=dbname, host=hostname, user=username)
tuple cur = conn.cursor()
tuple count = cur.execute('show tables')
tuple result = str(count)
tuple txtName = scribus.createText(10, 10, 200, 200)

Variable Documentation

tuple sample_db_usage.conn = MySQLdb.connect(passwd=password, db=dbname, host=hostname, user=username)

Definition at line 71 of file sample_db_usage.py.

tuple sample_db_usage.count = cur.execute('show tables')

Definition at line 79 of file sample_db_usage.py.

tuple sample_db_usage.cur = conn.cursor()

Definition at line 76 of file sample_db_usage.py.

string sample_db_usage.dbname = 'name'

Definition at line 62 of file sample_db_usage.py.

string sample_db_usage.hostname = 'server.foo.org'

Definition at line 61 of file sample_db_usage.py.

Definition at line 64 of file sample_db_usage.py.

Definition at line 81 of file sample_db_usage.py.

tuple sample_db_usage.txtName = scribus.createText(10, 10, 200, 200)

Definition at line 87 of file sample_db_usage.py.

Definition at line 63 of file sample_db_usage.py.