Re: What XML lib to use?

2005-09-13 Thread Ramdas
You can try xml.dom and xml.sax. Both are inbuilt libraries with Python standard package. You can read and write xml files with these very easily. There are number of third party modules for Python that manipulate XML. But the above are the basic ones. -- http://mail.python.org/mailman/listinfo/p

Re: What XML lib to use?

2005-09-13 Thread Ramdas
You can try xml.dom and xml.sax. Both are inbuilt libraries with Python standard package. You can read and write xml files with these very easily. There are number of third party modules for Python that manipulate XML. But the above are the basic ones. -- http://mail.python.org/mailman/listinfo/p

How do I add users using Python scripts on a Linux machine

2007-01-01 Thread Ramdas
How do I add users using Python scripts on a Linux machine? Someone has a script? -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I add users using Python scripts on a Linux machine

2007-01-01 Thread Ramdas
advise if there more pythonic solutions Ramdas Hari Sekhon wrote: > That is shell scripting with a python layer on top. Is there a > specific reason you have to use python? Why not just use shell, that's > what it's designed for? Unless you have some complex maths/networki

How do I trap errors in win32com.client?

2007-06-18 Thread Ramdas
How do I trap errors from win32com.client. I have tried the com_error classes from pywintypes and pythoncom sub modules. It is not catching for all cases. Is there any docs available? -- http://mail.python.org/mailman/listinfo/python-list

Any HTML to Latex module available in Python

2007-03-07 Thread Ramdas
Any HTML to Latex module available in Python which I can use to convert HTML text to Latex Ramdas -- http://mail.python.org/mailman/listinfo/python-list

creating color gradients using PIL

2007-11-20 Thread Ramdas
Any ideas how we can create a color gradient using Python Imaging Library. Has any got some sample code that can give me some idea. I need to create a horizontal and vertical color gradient for a college project Thanks -- http://mail.python.org/mailman/listinfo/python-list

Finding Line numbers of HTML file

2007-12-12 Thread Ramdas
I am doing some HTML scrapping for a side project. I need a method using sgmllib or HTMLParser to parse an HTML file and get line nos of all the tags I tried a few things, but I am just not able to work with either if the parsers. Can someone help -- http://mail.python.org/mailman/listinfo/p

Re: Finding Line numbers of HTML file

2007-12-12 Thread Ramdas
number. BS does not support line nos right now, and Richardson, says he will include the same in future. On Dec 13, 5:27 am, Paul McGuire <[EMAIL PROTECTED]> wrote: > On Dec 12, 3:56 pm, Ramdas <[EMAIL PROTECTED]> wrote:> I am doing some HTML > scrapping for a side pr

Re: Finding Line numbers of HTML file

2007-12-13 Thread Ramdas
Hi Paul, I am cross posting the same to grab your attention at pyparsing forums too. 1000 apologies on the same count! I am a complete newbie to parsing and totally new to pyparsing. I have adapted your code to store the line numbers as below. Surprisingly, the line numbers printed, when I scrap

Re: Finding Line numbers of HTML file

2007-12-13 Thread Ramdas
gLocs[t]) return taglinedict What did I do wrong and why this problem! Ramdas -- http://mail.python.org/mailman/listinfo/python-list

Re: string payload expected: error

2009-11-27 Thread Ramdas
On Nov 27, 2:39 am, Lie Ryan wrote: > Ramdas wrote: > > Dear all, > > > I believe this is an error which was fixed in Python 2.3 itself. But I > > am running Python 2,5.2 and error keeps on cropping up. > > > Here is my code to construct emails . It works p

string payload expected: error

2009-11-26 Thread Ramdas
Dear all, I believe this is an error which was fixed in Python 2.3 itself. But I am running Python 2,5.2 and error keeps on cropping up. Here is my code to construct emails . It works perfectly when I dont have any attachments. Please find my code at http://dpaste.com/hold/125574/ However when

Re: string payload expected: error

2009-11-26 Thread Ramdas
On Nov 27, 1:33 am, MRAB wrote: > Ramdas wrote: > > Dear all, > > > I believe this is an error which was fixed in Python 2.3 itself. But I > > am running Python 2,5.2 and error keeps on cropping up. > > > Here is my code to construct emails . It works p