I have defined the connection object in a file. ------------------------ myfile.py (simplified version)---------------------------------- import dabo ci = dabo.db.dConnectInfo(Host='myhost', DbType='MySQL', Database='mydb', User='myname', PlainTextPassword='mypass') oConn = dabo.db.dConnection(ci)------------------------ eof---------------------------------- from python shell I give this call: >> import myfile (in MySQL administrator, I could see that 1 connection is created) from a separate instance of python shell I give the same call: (or reload(myfile) on the same shell)>> import myfile (in MySQL administrator, I could see that another new connection is created) If I need to persist & reuse the same connection, how do I achieve it? Thanks, Vineet
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
