Question about interpreter

2008-10-23 Thread Usman Ajmal
Assalamalaikum An interpreter which Python also uses, translates and checks for errors in code, one line at a time. Question: Does interpreter also executes the translated code? -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about interpreter

2008-10-23 Thread Usman Ajmal
Thanks James... On Fri, Oct 24, 2008 at 8:01 AM, James Mills [EMAIL PROTECTED]wrote: On Fri, Oct 24, 2008 at 12:55 PM, Usman Ajmal [EMAIL PROTECTED] wrote: An interpreter which Python also uses, translates and checks for errors in code, one line at a time. Question: Does interpreter

Re: How to convert M2Crypto.RSA.RSA to string

2008-09-17 Thread Usman Ajmal
by the way marco and Toivonen for trying to help :) On Mon, Sep 15, 2008 at 1:06 PM, Marco Bizzarri [EMAIL PROTECTED]wrote: On Mon, Sep 15, 2008 at 8:23 AM, Usman Ajmal [EMAIL PROTECTED] wrote: Hi, I have a M2Crypto.RSA.RSA instance that contain my public-key. I want that key as string

File Reading related query

2008-09-17 Thread Usman Ajmal
Hi., Is there any function for reading a file while ignoring *\n* occuring in the file? -- http://mail.python.org/mailman/listinfo/python-list

Re: File Reading related query

2008-09-17 Thread Usman Ajmal
this sentence = this is python list\nwhere we get support\nfrom geeks On Wed, Sep 17, 2008 at 10:18 AM, Fredrik Lundh [EMAIL PROTECTED]wrote: Usman Ajmal wrote: Is there any function for reading a file while ignoring *\n* occuring in the file? can you be a bit more precise? are we talking

Re: File Reading related query

2008-09-17 Thread Usman Ajmal
Thanks Tim. That rstrip('\r\n') worked. :) On Wed, Sep 17, 2008 at 10:45 AM, Tim Chase [EMAIL PROTECTED]wrote: Is there any function for reading a file while ignoring *\n* occuring in the file? can you be a bit more precise? are we talking about text files or binary files? how do you

Re: XML RPC Problem....

2008-09-13 Thread Usman Ajmal
Please explain the arguments of send_request. What exactly are the connection, handler and request_body? It will be really helpful if you give an example of how do i call send_request On Thu, Sep 11, 2008 at 7:18 AM, Fredrik Lundh [EMAIL PROTECTED]wrote: Usman Ajmal wrote: And i also fount

Re: XML RPC Problem....

2008-09-13 Thread Usman Ajmal
(AuthenticationFunctions()) server.serve_forever() On Sat, Sep 13, 2008 at 8:44 AM, Fredrik Lundh [EMAIL PROTECTED]wrote: Usman Ajmal wrote: Please explain the arguments of send_request. What exactly are the connection, handler and request_body? It will be really helpful if you give an example

Re: XML RPC Problem....

2008-09-13 Thread Usman Ajmal
Problem is that when i start client (while the server is already running), i get an error i.e. Error 500 Internal Server Error On Sat, Sep 13, 2008 at 3:58 PM, Fredrik Lundh [EMAIL PROTECTED]wrote: Usman Ajmal wrote: Where exactly should i call ServerProxy? Following is the code from my

Re: XML RPC Problem....

2008-09-13 Thread Usman Ajmal
: ProtocolError for localhost:8000/: 500 Internal Server Error On Sat, Sep 13, 2008 at 12:37 PM, Fredrik Lundh [EMAIL PROTECTED]wrote: Usman Ajmal wrote: Problem is that when i start client (while the server is already running), i get an error i.e. Error 500 Internal Server Error that's a server

Need help with the 'transport' for setting the header while calling a function at server side

2008-09-12 Thread Usman Ajmal
I am getting an Internal Server Error 500 when i run my client code. I am trying to call a function at the server side which for now only returns a string. Meanwhile this calling i also set the header of HTTP request. Following are my client and server code. Am i doing something wrong?

XML RPC Problem....

2008-09-11 Thread Usman Ajmal
Hi everyone, I am trying to call a function named system.auth at the server side running at localhost:8080 but at the same time i want to set the http header. I found that header can be set by h.putheader(AUTHORIZATION, Basic %s%encodestring(%s:%s % (ustring,text_ucert)))

Re: XML RPC Problem....

2008-09-11 Thread Usman Ajmal
]wrote: Usman Ajmal wrote: And i also fount that a typical system.auth call will look like: POST /xmlrpc/clarens_server.py HTTP/1.0 Host: localhost User-Agent: xmlrpclib.py/0.9.9 (by www.pythonware.com http://www.pythonware.com) Content-Type: text/xml Content-Length: 105 AUTHORIZATION

'Bad Signature' error with M2Crypto

2008-08-10 Thread Usman Ajmal
I think it is a right place to ask my query... I wrote the following code for signing and verifying some message using Public-Private Key Encyption but it has a problem. It is giving me a 'Bad Signature' error at line 27. I don't know what wrong am i doing as to me the signature is looking fine.