Hi,

I'm trying to run the following program :

from twisted.enterprise import adbapi

dbpool = adbapi.ConnectionPool("MySQLdb", "khalid_sultaln", "root", "mysql")

def xmlValues() :
    return dbpool.runQuery("SELECt * from xml_vaules limit 1")

def printResult(l):
    print type(l)
    print l[0][0]



xmlValues().addCallback(printResult)


But its not printing anything. What exactly i'm doing wrong?
_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to