Re: Python built email message doesn't support OutLook Express

2005-09-01 Thread praba kar
--- Diez B. Roggisch [EMAIL PROTECTED] wrote: That is not what Sybren requested - we need the message text. If you send html, make sure your paragraphs are html paragraphs (enclosed in p-tags) and not pure whitespace, as html ignores these. I am sending text message as a paragraph

Re: reg email packages work

2005-08-30 Thread praba kar
--- Sybren Stuvel [EMAIL PROTECTED] wrote: Steve Holden enlightened us with: It's obvious you aren't using that EXACT code, because it doesn't formulate a three-paragraph message. So the bit we really need to see is how you capture and formulate the argument to set_payload(). I'd

Python built email message doesn't support OutLook Express

2005-08-29 Thread praba kar
Dear All, I am working in web based email system project. Here I try to build email message from scratch. I used below code to build email message msg = email.MIMEBase('text','html') msg['Return-Path'] = user+'@'+domain msg['Date'] = formatdate(localtime=1) msg['Subject'] =

reg email packages work

2005-08-29 Thread praba kar
Dear All, I am working in web based email system project. Here I try to build email message from scratch. I used below code to build email message msg = email.MIMEBase('text','html') msg['Return-Path'] = user+'@'+domain msg['Date'] = formatdate(localtime=1) msg['Subject'] =

Re: Python built email message doesn't support OutLook Express

2005-08-29 Thread praba kar
--- Sybren Stuvel [EMAIL PROTECTED] wrote: praba kar enlightened us with: This code will build plain email message properly. It's not a plain email message. It's an html email without a plain text part. Highly annoying to many people. But after building the message. If a email user

Re: Doubt C and Python

2005-08-24 Thread praba kar
--- James [EMAIL PROTECTED] wrote: Some people with C background use Python instead of programming in C.why? Becuase it is much more efficient. -James What why it is more efficient. Kindly let me know with some details. regards Prabahar

reg packages examples

2005-08-24 Thread praba kar
Dear All, I want to know about Modules and packages. I can understand about Modules but I cannot understand about Packages. Kindly let me know about Packages with small example. I can understand conceptually but I don't know how to write programmatically. regards Prabahar

Reg Python Modules/Packages

2005-08-24 Thread praba kar
Dear All, I know how to use modules. But I want to know how to create package. Can any one let me know how to write package through small specimen code. regards PRabahar Send a rakhi to your

Doubt C and Python

2005-08-23 Thread praba kar
Dear All, I want to know the link between c and python. Some people with C background use Python instead of programming in C.why? regards Prabahar Send a rakhi to your brother, buy gifts and

Reg python nature.

2005-08-23 Thread praba kar
Dear All, I want to know the link between c and python. Some people with C background use Python instead of programming in C.why? regards Prabaha Send a rakhi to your brother, buy gifts and win

Doubt Regarding link between C and Python

2005-08-23 Thread praba kar
Dear All, I want to know the link between c and python. Some people with C background use Python instead of programming in C.why? regards Prabahar Send a rakhi to your brother, buy gifts and

Reg Python Byte code

2005-08-22 Thread praba kar
Dear All, Python 2.3 creates byte code with *.pyc extention. But Python 2.4 creates bytes code with *.pyo. Is there any difference between *.pyc and *.pyo?. Actually After python compiled a program then that program will run from the *.pyc byte code. If I delete that byte code what

Sample code to build rfc822 mail message building

2005-08-06 Thread praba kar
Dear All, I am new to python world. I have pasted my code which I used it to build rfc822 format mails for webbased mailing system task(which is like to yahoo.com web interface). Now I am asking some suggestions and guidence regarding this below code. Still What way I can improve this

how to append cgi FieldStorage Class instance

2005-07-29 Thread praba kar
Dear All, I have doubt in python cgi script. I describe that doubt with below code import cgi form = cgi.FieldStorage() passwd = form['passwd'].value print passwd But Now I want to assign some value to form['passwd'] field value form['passwd'] = 'surese' Now If I try to print print

Re: how to append cgi FieldStorage Class instance

2005-07-29 Thread praba kar
--- Fuzzyman [EMAIL PROTECTED] wrote: praba kar wrote: Dear All, I have doubt in python cgi script. I describe that doubt with below code import cgi form = cgi.FieldStorage() passwd = form['passwd'].value print passwd But Now I want to assign some value to form['passwd

Python-cgi or Perl-cgi script doubt

2005-07-29 Thread praba kar
Dear All, I want to know difference between Python-cgi and Perl-cgi and also I want to which one is efficient from the performance. regards Prabahar ___ Too much spam in your inbox? Yahoo! Mail gives you the best spam

how to build email message with attachment?

2005-07-26 Thread praba kar
Dear All, Can any one let me know? How to build email in python? with some some examples. regards Prabahar ___ Too much spam in your inbox? Yahoo! Mail gives you the best spam protection for FREE!

Retrive file name from the window's file path

2005-07-23 Thread praba kar
Dear All, I am using Python 2.4 in the linux platform. At present I am working on webbased file manager. When I try to upload a file from the linux cgi script easily fetch the file name by the filefield.filename. But When I try to upload a file from the windows machine It won't retrieve

How to limit the uploading file size in python?

2005-07-21 Thread praba kar
Dear All, In Php we can limit the uploading file size by php.ini configuration file. But In python what way we can limit the file uploading size. kindly let me know. regards Prabahar __ How much free photo storage

Reg file uploading

2005-07-20 Thread praba kar
Dear All, I have doubt regarding file uploading. When we upload a file to the remote server we can get file type through file extentions. How we can find out file type if a file doesn't have any extentions ? with regards PRabahar

reg php equivalent move_uploaded file function in python

2005-07-13 Thread praba kar
Dear all, Is there any php equivalent move_uploaded_file($source_path, $upload_dir/$name); function in python to upload a file to server? Kindly give me answer. regards Prabahar __ How much free photo storage do

mail sending using telnet in python

2005-07-08 Thread praba kar
Dear All, Normally we can send mail using telnet in linux. In the following way [~user]telnet Ipaddress 25 mail from: [EMAIL PROTECTED] 250 o.k(response of from commandline) rcpt to: [EMAIL PROTECTED] 250 o.k(response of from commandline) data 354 go ahead(response of from commandline) Hello

How to connect python and Mysql?

2005-06-29 Thread praba kar
Dear All, I am using python2.4 and Mysql 4.0.20. Now I am want to connect python and mysql. I have problem to install Mysql-python-1.2.0 interface into my machine. When I try to install this interface the following error restrict to install fully. /System/Links/Executables/ld: cannot

Regarding MySQLdb

2005-06-29 Thread praba kar
Dear All After installation of Mysql-Python Interface. I try to import MySQLdb but I got below error How to correct this error. regards Praba import MySQLdb Traceback (most recent call last): File stdin, line 1, in ? File MySQLdb/__init__.py, line 27, in ? import _mysql ImportError:

regarding cache clearing header in python cgi

2005-06-21 Thread praba kar
Dear All, In Php the following headers base we can clean the cache in the url header('Cache-Control: no-store, no-cache, must-revalidate'); I want to know Php equivalent headers in Python-cgi If anybody know regarding this kindly mail me. regards, Prabahar

regarding popen function

2005-06-18 Thread praba kar
Dear All, The following way of popen function usage is wrong or not kindly give me answer regarding this time = os.popen(echo %s | tai64nlocal % line[2]).read() Actually here I didn't use any file handler and I didn't close file handler. regards Prabahar

How to right align IPaddress?

2005-06-17 Thread praba kar
Dear all, Is it possible to right align the Ipaddress? Normally we can right align the list of numbers by %3u or %7u. How we can right align the Ipaddress? I expects below format output eg 203.199.200.0 203.33.20.0 with regards, Prabahar

regarding cgi

2005-06-14 Thread praba kar
Dear All, I have doubt regarding headers in cgi programming. If I gives Content-Type:text/plain then I try to print html contents. Is right or wrong after giving content-type: text/plain? regards Prabahar ___

Regarding Content-type headers

2005-06-14 Thread praba kar
Dear All, I have doubt regarding headers in cgi programming. If I gives Content-Type:text/plain then I try to print html contents. Is right or wrong after giving content-type: text/plain? regards Prabahar __

Reg cgi header

2005-06-14 Thread praba kar
Dear All, I have doubt regarding headers in cgi programming. If I gives Content-Type:text/plain then I try to print html contents. Is right or wrong after giving content-type: text/plain? regards Prabahar

reg php.ini equivalent file in python

2005-06-07 Thread praba kar
Dear All, I have one doubt. Is there python.ini file like php.ini in Php? Actually php.ini file controls many aspects of PHP's behavior. The following details of php.ini will explain about it. max_execution_time = 5000 ; Maximum execution time of each script, in seconds

reg python related job searching

2005-05-24 Thread praba kar
Dear All, Can any one guide me how to get python related jobs?. Actually Now I am in Python web programming field. I have technical knowledge about Python, ZOPE and Twisted-web(Twisted Python) with 1 year exp.. Yahoo!

Reg Date string conversion into timestamp function

2005-05-16 Thread praba kar
Dear All, I have doubt regarding date string to time conversion function. In Python I cannot find flexible date string conversion function like php strtotime. I try to use following type function 1) parsedate function failed if a date string like below format 16-MAY-2005 01:26

Reg php equivalent Mail_mime Module in Python

2005-05-13 Thread praba kar
Dear All, email.Message module base we can build message for mailing services which is like php Mail_mime module. In php Mail_mime module willautomatically build all the header fields like content-type, content-Transfer-encoding, Return-Path and so on for a mailing messages. I want to know

Re: reg mail sending without smtp module

2005-05-12 Thread praba kar
Dear All, From this below answer I got clear idea for mail sending Module. I am expecting this kind of answer . Thank you for your immediate response. --- Mike Meyer [EMAIL PROTECTED] wrote: praba kar [EMAIL PROTECTED] writes: In Php we can build a Mail Message by Mail_mime class

Re: reg mail sending without smtp module

2005-05-12 Thread praba kar
Dear All, From this below answer I got clear idea for mail sending Module. I am expecting this kind of answer . Thank you for your immediate response. --- Mike Meyer [EMAIL PROTECTED] wrote: praba kar [EMAIL PROTECTED] writes: In Php we can build a Mail Message by Mail_mime class

Regarding Mail sending smtplib Module

2005-05-11 Thread praba kar
Dear All, I have doubt regarding mail sending smtplib module. The below code is I used to send a mail. ## import email.Message import email.Utils import mimetypes import os,string fromAddr=[EMAIL PROTECTED] toAddr= [[EMAIL PROTECTED],[EMAIL

reg mail sending without smtp module

2005-05-11 Thread praba kar
Dear All, Is it possible to send a message as a mail with out smtplib module? If you find out any module for mail sending(without smtplib) kindly mail me. regards Prabahar Yahoo! India Matrimony: Find your life

regarding php equivalent Mail::Factory Module

2005-05-11 Thread praba kar
Dear All, In Php we can send mail by Mail::Factory's send method. Here php using send method instead of using any smtp module like that I want to know that kind of python module Yahoo! India Matrimony: Find your

Regarding Mail sending Module

2005-05-10 Thread praba kar
Dear All, In Php we can do all the mailing operations like sending a text as a message, adding attachment to a mail, adding additional headers and so on using Mail_mime class. I want to know like that class or modules in Python. I already gone through MimeWriter,smtplib and so on. But I

regarding try/except usa

2005-05-09 Thread praba kar
Dear All, Is there any rules and regulations to use try/except in python? Can any one explain to me when I need to use try/except and when we I need not use try/except?. This Question mainly for to maintain code integrity in my project. But I know how to use try/except regards Praba

Reg strip_tags function in Python.

2005-05-07 Thread praba kar
Dear All, In Php I can use strip_tags() function to strip out all html tags. I want to know that strip_tags() equivalent function in Python. regards praba Yahoo! India Matrimony: Find your life partner online Go to:

RFC 2822 format date printing function in python

2005-05-06 Thread praba kar
Dear All, In Php we can print RFC 2822 formatted date by date('r') with parameter r. Then it will print the below format date. Thu, 7 Apr 2005 01:46:36 -0300. I want to print same RFC 2822 format in python. Is it possible in python? . If possible kindly mention the function related to print

Difference between Python CGI applications and Php applications

2005-05-04 Thread praba kar
Dear all, I have a project that is conversion of Php Web applications into Python cgi applications. In my mind compare python-cgi php is better. But I want to know clearly. which one is better. so kindly show me the advantages of python-cgi compare to Php regards PRaba

Doubt regarding python Compilation

2005-04-27 Thread praba kar
Dear all, I have doubt regarding python Compilation. I want to know whether Python is compiler language or interpreted language. If Python is interpreter language why compilation is there. with regards Yahoo!

how to connect my sql with Python

2005-04-27 Thread praba kar
Dear All, I am doing Python-cgi Project in my company. To connect My sql database(Mysql 4.1.11.) into Python(2.3.3) cgi. I have installed MySQL-python-1.2.0. After installation of MySQL-Python-1.2.0 I try import MySQLdb module. It raised the following error import MySQLdb Traceback

Re: regarding system function

2005-04-22 Thread praba kar
--- Robert Kern [EMAIL PROTECTED] wrote: praba kar wrote: Dear All, In Php If I send a command to system function then It will return 1 on success and 0 on failure. So based upon that value I can to further work. But In Python If I send a command to system function

regarding main function

2005-04-21 Thread praba kar
Dear All, I want to know the difference between calling a function directly and through main function compose() if __name__ == __main__: compose() Yahoo! India Matrimony: Find your life partner online Go to:

goto statement

2005-04-20 Thread praba kar
Dear All, In Python what is equivalent to goto statement regards, praba __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- http://mail.python.org/mailman/listinfo/python-list

module MySQLdb is missing in python 2.3.3

2005-04-19 Thread praba kar
Dear All, I am using python 2.3.3 version. If I try to import MySQLdb. Here I found the following error importError: No module named MySQLdb. So what I need to do for this ?. How I need to install this MySQLdbo. praba

trouble to print array contents using slice operator

2005-04-16 Thread praba kar
Dear all, In Php array_slice function base we can print array contents as per our desire eg) $a = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15); $arr = array_slice($a,10,10); this function will print 11,12,13,14,15 But I try to print the same thing in python using slice operator eg) print

Doubt regarding sorting of a list specific field

2005-04-12 Thread praba kar
Dear All, I have doubt regarding sorting. I have a list that list have another list (eg) list = [[1234,'name1'],[2234,'name2'],[0432,'name3']] I want to sort only numeric value having array field. How I need to do for that. with regards Prabahar

Doubt regarding sorting functions

2005-04-10 Thread praba kar
Dear All, I am new to Python. I am in need of some sorting functions (eg) numerical sorting functions and alphapetical sorting functions. I have searched through net But I cannot find any regarding this so If anyone know regarding this. Kindly mail me as early as possible with

How to check whether a list have specific value exist or not?

2005-04-09 Thread praba kar
Dear All In Php we can find in_array() function which function is mainly useful to check whether a specific value is exist in the array or not. But In python In cannot find any function like that. I want to check a list have specific value or not. So If any one know regarding this mail

change the date string into timestamp

2005-04-09 Thread praba kar
Dear All, In Php strtotime() will change a date string into timestamp. I want to know which python function will change a date string into timestamp. Date string format is below Fri, 8 Apr 2005 09:22:14 +0900 regards Prabahar

Re: change the date string into timestamp

2005-04-09 Thread praba kar
--- Michael Hoffman [EMAIL PROTECTED] wrote: praba kar wrote: In Php strtotime() will change a date string into timestamp. I want to know which python function will change a date string into timestamp. What do you mean by a timestamp? -- Time stamp means datestring

doubt regarding Conversion of date into timestamp

2005-04-08 Thread praba kar
Dear All, I am new to Python I want to know how to change a time into timestamp eg Fri, 8 Apr 2005 09:22:14 +0900 like format date I want to change as a timestamp. I have used below code to get timestamp import time time.strptime(v,'%a, %d %b %Y %X +0900') function. This function will

doubt regarding main function

2005-04-07 Thread praba kar
Dear All, I have doubt regarding main function in Python. In Python we can create a function and we can call a function directly. (eg:) def test(): print 'main function test' I can call this function the following way eg) test() So why we need the below way of calling a function? if

how to parse system functions output

2005-04-06 Thread praba kar
Dear all, I want to parse the system functions output but I couldn't do it. Kindly assist me in this task. eg) bytesused = os.system('du -sh /Users/enmail') if I print this bytesused variable the output of bytesused variable is the below 14M /Users/enmail 0 Now From this Output I

Ternary Operator in Python

2005-03-31 Thread praba kar
Dear All, I am new to Python. I want to know how to work with ternary operator in Python. I cannot find any ternary operator in Python. So Kindly clear my doubt regarding this __ Yahoo! Messenger Show us what our next emoticon should look

Ternary Operator in Python

2005-03-31 Thread praba kar
Dear All, I am new to Python. I want to know how to work with ternary operator in Python. I cannot find any ternary operator in Python. So Kindly clear my doubt regarding this With regards, Prabahar __ Do you Yahoo!? Yahoo! Mail - Helps