http call.

2006-10-24 Thread Kirt
Hi! I have a php program (test.php) on a server. eg: http://abc.xyz.com/test.php I need my python scripts to make a http call to these program pass some data and get back a secret key from the php program.. Could anyone help me this, what will i need to make a http call to the php application?

Re: Need help in Py2exe

2006-10-19 Thread Kirt
> > there's a page on the py2exe site about tweaks necessary for specific > modules: > > http://www.py2exe.org/index.cgi/WorkingWithVariousPackagesAndModules > > look for: > > If you're getting File "xml\sax\saxexts.pyc", line 77, in > make_parser; xml.sax._exceptions.SAXReaderNotAv

Need help in Py2exe

2006-10-19 Thread Kirt
I have a simple scrips that Parses a XML file and prints its element. 1)Main.py 2)Handler.py 3)test.xml The scripts works fine from comand prompt. Now i wanted to convert it to an exe. So i wrote a setup.py scripts as folows: #-Setup.py--

Re: File I/O

2006-09-29 Thread Kirt
jimburton wrote: > Kirt wrote: > > Hi! I need some help in file I/O > > > > I have an xml file.. > [snip] > See http://diveintopython.org/xml_processing/ i dont wanna parse the xml file.. Just open the file as: f=open('test.xml','a')

Re: File I/O

2006-09-29 Thread Kirt
jimburton wrote: > Kirt wrote: > > Hi! I need some help in file I/O > > > > I have an xml file.. > [snip] > See http://diveintopython.org/xml_processing/ i dont wanna parse the xml file.. Just open the file as: f=open('test.xml','a') and write

File I/O

2006-09-29 Thread Kirt
Hi! I need some help in file I/O I have an xml file.. xyz I want to open these file in append mode and add the line abd Such that i have: xyz xyz can anyone show me the way to achieve this?? thanx -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with List of List

2006-08-26 Thread Kirt
Paul Rubin wrote: > "Kirt" <[EMAIL PROTECTED]> writes: > > Actually here in my code ['1', 'a', '6'], ['1', 'b', '6'], ['1', 'c', > > '6'] means: > > 1==&g

Re: Problem with List of List

2006-08-25 Thread Kirt
Kirt wrote: > Fredrik Lundh wrote: > > Fredrik Lundh wrote: > > > > >> I have a code > > >> ==CODE= > > >> List=[['1', 'a', '6'], ['1', 'b', '6'], ['1&#

Re: Problem with List of List

2006-08-25 Thread Kirt
Fredrik Lundh wrote: > Fredrik Lundh wrote: > > >> I have a code > >> ==CODE= > >> List=[['1', 'a', '6'], ['1', 'b', '6'], ['1', 'c', '6'], > >> ['1', 'd', '6'],['2', 'a','6'], ['2', 'b', '6'], > >> ['2', 'c', '6'], ['2', 'd', '6'], ['3', 'a', '6'], > >>

Re: Problem with List of List

2006-08-25 Thread Kirt
Fredrik Lundh wrote: > Fredrik Lundh wrote: > > >> I have a code > >> ==CODE= > >> List=[['1', 'a', '6'], ['1', 'b', '6'], ['1', 'c', '6'], > >> ['1', 'd', '6'],['2', 'a','6'], ['2', 'b', '6'], > >> ['2', 'c', '6'], ['2', 'd', '6'], ['3', 'a', '6'], > >>

Problem with List of List

2006-08-25 Thread Kirt
I am a newbie and stuck over this for a week I have a code ==CODE= List=[['1', 'a', '6'], ['1', 'b', '6'], ['1', 'c', '6'], ['1', 'd', '6'],['2', 'a','6'], ['2', 'b', '6'], ['2', 'c', '6'], ['2', 'd', '6'], ['3', 'a', '6'], ['3','b', '6'], ['4', '

Re: locked file

2006-07-27 Thread Kirt
By locked files i mean Outlook PST file while Outlook has it open Simon Forman wrote: > Kirt wrote: > > i have a code that backsup file from src to dest. > > Now if some of the files are locked , i need to skip those files.. > > I was trying to use fctl module but it can b

locked file

2006-07-27 Thread Kirt
i have a code that backsup file from src to dest. Now if some of the files are locked , i need to skip those files.. I was trying to use fctl module but it can be used only in unix i suppose. is there anyother way? i am using windows os. -- http://mail.python.org/mailman/listinfo/python-list

help in xml and python

2006-07-13 Thread Kirt
i have a List modifiedfiles= [['/home/moq/buc/2/mod2.py', '200607131001'], ['/home/moq/buc/1/mod2.py', '200607131000'], ['/home/moq/buc/1/mod3.py', '200607131001'], ['/home/moq/buc/1+mod1.py', '200607131001']] i have to put them in am xml format like the follg. /home/moq/buc/2

Re: Problem with "&" charater in xml.

2006-07-13 Thread Kirt
thanx stefan ur approach worked. Stefan Behnel wrote: > Kirt wrote: > > How do i append characters to a string? > > I think the normal approach is to store an empty string (or list) in an > attribute in startElement(), append to it in characters() and use the result > in

Re: Problem with "&" charater in xml.

2006-07-12 Thread Kirt
e this y+def.txt,200607130417 C:\Documents and Settings\Administrator\Desktop\1\hii wx\abc.txt,200607130415 But i wont the output as C:\Documents and Settings\Administrator\Desktop\1\bye w&y\def.txt,200607130417 C:\Documents and Settings\Administrator\Desktop\1\hii wx\abc.txt,200607130415 Stefan

Problem with "&" charater in xml.

2006-07-12 Thread Kirt
i have walked a directory and have written the foll xml document. one of the folder had "&" character so i replaced it by "&" #--test1.xml C:\Documents and Settings\Administrator\Desktop\1\bye w&y def.txt 200607130417 C:\Documents and Settings\Administrator\Deskt

Re: Need help in xml

2006-07-11 Thread Kirt
Thanx Dennis Lee Bieber for ur suggestion. After following ur suggestion i am getting 3 list after reading and comparing the 2 xml document. +, adds ['/home/moq/buc/2+add.py,200606281354\r \n', '/home/moq/buc/1+add.py,200607031215\r \n'] Modified ['/home/moq/buc/2+

Need help in xml

2006-07-10 Thread Kirt
i have two xml documemts of type test 2006-12-12 12:12:12 /home/ test2 12:12:12 /home/test test3 12:12:12 i have to compare 2 similar xml document and get the add, changed and deleted files.and write it into acd.xml file. can u help me with