Hi,<br><br>I have create a class file named Mysqldb.py<br><br>class Mysqldb:<br>        def __init__(self, name):<br>                #this where it tries to connect to database<br>                self.ip = ip<br>                print "Inializing session for name"<br>
<br>        def test(self):<br>                print "worked"<br><br>-----------------------------------------------------<br><br>now i'm trying initialize this another python file called  session.py<br><br>
import Mysqldb<br><br>def session():<br>      Sess = Mysqldb ("localbox")          <br><br><br>when i try to run in using python session.py.<br><br>i get error message<br>TypeError: 'module' object is not callable<br>
<br>can any 1 help me on this.<br><br>Thanks & Regards<br>Arun <br><br clear="all"><br>-- <br>-----<br>Fight back spam! Download the Blue Frog.<br><a href="http://www.bluesecurity.com/register/s?user=YXJ1bnJhZ2luaQ%3D%3D">http://www.bluesecurity.com/register/s?user=YXJ1bnJhZ2luaQ%3D%3D</a>