Hi
I am trying to create a COM object of picalo functionalities so that I can use
it into my VB application but I am getting the following error "[Errno 9] bad
file descriptor".
Can you please suggest me what is supposed to do to avoid this problem?
This is my code
class Test(object):
_reg_progid_ = "test"
_reg_clsid_ = "{D2EFAAC0-797A-471A-AA07-ECEACFE33A08}"
_public_methods_ = ['dbconnect']
def dbconnect(self, dbName, dbUserName, dbPWD, dbHost, dbPort):
try:
self.conn = Database.MySQLConnection(dbName, username=dbUserName,
password=dbPWD, host=dbHost, port=dbPort)
self.table = self.conn.table( "SELECT * FROM test_flag_data")
return "connected"
except Exception,e:
return str(e)
Thanks,
Sibty
This e-mail (and any attachments), is confidential and may be privileged. It
may be read, copied and used only
by intended recipients. Unauthorized access to this e-mail (or attachments) and
disclosure or copying of its
contents or any action taken in reliance on it is unlawful. Unintended
recipients must notify the sender immediately
by e-mail/phone & delete it from their system without making any copies or
disclosing it to a third person.
--
http://mail.python.org/mailman/listinfo/python-list