problem with Sorting from Array

2011-02-02 Thread shanti bhushan
Dear All, funtion "textPosValue " will give me key ,type and pos values from the arrays. This an embedded application code . I want to execute some thing when key ==0 && type ==0 please let me know where to put such code i am getting confused with it def textPosValue(data): str_arr1=[" 0",".

Re: process cannot access the file because it is being used by other process

2010-06-21 Thread shanti bhushan
On Jun 21, 2:15 pm, Tim Golden wrote: > On 21/06/2010 09:23, shanti bhushan wrote: > > > i am using below code ,it works fine on ordinary python 26 ,but when i > > use this script in my python testing tool it gives me message "process > > cannot access the file beca

process cannot access the file because it is being used by other process

2010-06-21 Thread shanti bhushan
Hi, i am using below code ,it works fine on ordinary python 26 ,but when i use this script in my python testing tool it gives me message "process cannot access the file because it is being used by other process" for the second time invoking of mongoose server. Please help me in handling this excep

Re: start and kill process by command promt

2010-06-20 Thread shanti bhushan
On Jun 21, 10:41 am, shanti bhushan wrote: > Hi, > I want to invoke local wen server named mogoose, and kill it after > some time by python script. > Then i want to change the argument and invoke it again. > > I am able to do this with below code. > > import subproce

start and kill process by command promt

2010-06-20 Thread shanti bhushan
Hi, I want to invoke local wen server named mogoose, and kill it after some time by python script. Then i want to change the argument and invoke it again. I am able to do this with below code. import subprocess import time def invoke_server1(): s1ret=subprocess.Popen(r'C:\WINDOWS\system32\cm

Re: subprocess in Command promt+ webbrowser

2010-06-19 Thread shanti bhushan
On Jun 19, 11:01 am, shanti bhushan wrote: > I have a code ,in which i invoke the local webserver in back > ground ,then open URL and access the web page. > below is my code. > I am able to invoke and kill the local webserver in seperate python > script,but when i club opening of

Re: subprocess in Command promt+ webbrowser

2010-06-18 Thread shanti bhushan
On Jun 19, 11:01 am, shanti bhushan wrote: > I have a code ,in which i invoke the local webserver in back > ground ,then open URL and access the web page. > below is my code. > I am able to invoke and kill the local webserver in seperate python > script,but when i club opening of

subprocess in Command promt+ webbrowser

2010-06-18 Thread shanti bhushan
I have a code ,in which i invoke the local webserver in back ground ,then open URL and access the web page. below is my code. I am able to invoke and kill the local webserver in seperate python script,but when i club opening of browser and and subprocess , my like below ,then my script is not respo

python local web server

2010-06-14 Thread shanti bhushan
respect, if this code is already avaialble please update me. Please guide me the design or direct me the best approach to do all this. Regards Shanti Bhushan -- http://mail.python.org/mailman/listinfo/python-list

Capture the request/response log for local web server through python.

2010-06-14 Thread shanti bhushan
s client-request ,server-response with the help of python script. please guide me to write such python script with which i can log all server /client request and response. Regards, Shanti Bhushan shanti.bhus...@hotmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: configuration setting for python server

2010-06-14 Thread shanti bhushan
On Jun 15, 5:53 am, David Zaslavsky wrote: > On Monday 14 June 2010 6:19:33 am shanti bhushan wrote:> I want to update the > configuration file for python server ,but i am > > not able to locate the python configuration file. > > What configuration file? I don't see

Re: configuration setting for python server

2010-06-14 Thread shanti bhushan
On Jun 15, 5:53 am, David Zaslavsky wrote: > On Monday 14 June 2010 6:19:33 am shanti bhushan wrote:> I want to update the > configuration file for python server ,but i am > > not able to locate the python configuration file. > > What configuration file? I don't see

configuration setting for python server

2010-06-14 Thread shanti bhushan
I want to update the configuration file for python server ,but i am not able to locate the python configuration file. Please guide me in this respect. I am using a python web server This is the code for it --- import string,cgi,time from os impo

Re: url fetching from xml depending upon selection

2010-05-18 Thread shanti bhushan
On May 18, 12:04 pm, Stefan Behnel wrote: > shanti bhushan, 18.05.2010 07:18: > > > > > > > I have a sample.XML file > > the code is like this > > > > > > > > >    My Podcasts > >    Sun, 07 Mar 2010 15:53:26 > > > GMT &g

Re: url fetching from xml depending upon selection

2010-05-18 Thread shanti bhushan
On May 18, 12:04 pm, Stefan Behnel wrote: > shanti bhushan, 18.05.2010 07:18: > > > > > > > I have a sample.XML file > > the code is like this > > > > > > > > >    My Podcasts > >    Sun, 07 Mar 2010 15:53:26 > > > GMT &g

Re: url fetching from xml depending upon selection

2010-05-18 Thread shanti bhushan
On May 18, 10:18 am, shanti bhushan wrote: > I have a sample.XML file > the code is like this > > > > >         My Podcasts >         Sun, 07 Mar 2010 15:53:26 > > GMT >         Sun, 07 Mar 2010 15:53:26 > > GMT > > >   >    

Re: url fetching from xml depending upon selection

2010-05-17 Thread shanti bhushan
On May 18, 10:18 am, shanti bhushan wrote: > I have a sample.XML file > the code is like this > > > > >         My Podcasts >         Sun, 07 Mar 2010 15:53:26 > > GMT >         Sun, 07 Mar 2010 15:53:26 > > GMT > > >   >    

Re: url fetching from xml depending upon selection

2010-05-17 Thread shanti bhushan
On May 18, 10:18 am, shanti bhushan wrote: > I have a sample.XML file > the code is like this > > > > >         My Podcasts >         Sun, 07 Mar 2010 15:53:26 > > GMT >         Sun, 07 Mar 2010 15:53:26 > > GMT > > >   >    

url fetching from xml depending upon selection

2010-05-17 Thread shanti bhushan
I have a sample.XML file the code is like this My Podcasts Sun, 07 Mar 2010 15:53:26 GMT Sun, 07 Mar 2010 15:53:26 GMT http://first.co.jp"; /> http://www.google.com"; /> http://www.epaper.times.india.com"; /> http://second.co.jp"; /> http

reading XML file using python

2010-05-17 Thread shanti bhushan
Hi , i am new to python.i want to read the XML file using python it ,by using DOm or SAX any of them. I want to read the http://www.google.com(any hyper text) from XML and print that. please give me the sample program for this. regards Shanti Bhushan Bangalore,India -- http://mail.python.org