[Tutor] need help for using ssl in python
Hi,I need to create an ssl socket. But i am getting the folowing error:Traceback (most recent call last): File "client-Nextone.py", line 35, in ? resp = port.editCallPlanConfig(req) File "/home/nabanita/new_soap_zsi/NexToneSubnet_services.py", line 38, in editCallPlanConfig self.binding.Send(None, None, request, soapaction="setCallPlanConfig", **kw) File "/usr/local/lib/python2.4/site-packages/ZSI/client.py", line 266, in Send self.h.connect() File "/usr/local/lib/python2.4/httplib.py", line 1073, in connect ssl = socket.ssl(sock, self.key_file, self.cert_file)AttributeError: 'module' object has no attribute 'ssl'I have installed OpenSSL/ module for python 2.4 and also openssl-0.9.7d-15.15.3 python-openssl-0.6-2.1 openssl-devel-0.9.7d-25.1 Please help.Akanksha Everyone is raving about the all-new Yahoo! Mail beta.___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] SAX and Python
Hi,I have written a small code in python for reading xml using SAX.I am importing xml.sax using the following:from xml.sax import saxlib, saxextsOn executing the code I get the following error:ImportError: cannot import name saxlibBoth python-xml and pyxml are installed on my machine along with python 2.4.What am I missing here?ThanksAkanksha All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] AssertionError issue
Hi,I have a class in python which creates an ssh connection to a remote machine.In a function of the class, I have put the code in try/except block.try: -- --except AssertionError: print "Error Condition"In this code, when error occurs, it raises the AssertionError but the destuctor isnt called itself.As a result the ssh conenctions are not closed.Whenever such errors occurs should I call a function closing the ssh connection?What is the general way a python script exits on encountering an error?ThanksAkanksha Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail Beta.___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Query regarding Unittest module behaviour
Hi,I have 2 scripts , abc.py and xyz.py, In both I have made unittest cases using the unittest module.Script abc.py imports xyz.py.Now when I execute abc.py from commandlline all unittestcases of xyz.py are also executed. Why is this happening and what can be the solution to this.Also I have tried commenting the unittest.main() in xyz.py, but all in vain.Please helpAkanksha __Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Need python 2.4 rpm for Suse 9.1
Hi,I searched the sites but was unable to find Python 2.4 rpm for Suse 9.1.Please send me a link where I can download this.ThanksAkanksha Yahoo! Sports Fantasy Football 06 - Go with the leader. Start your league today! ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Need info regd Singleton class implementation
hi,I need to implement a singleton class in python.Please give me some refernce sites which can help me with the same.Also i want to know to call a destructor for a singleton class.ThanksAkanksha __Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Debugger Needed
Hi,I am new to python, I want to know how to use a debugger and which debugger give a GUI .I am using Suse 9.1.ThanksAkanksha Relax. Yahoo! Mail virus scanning helps detect nasty viruses!___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor