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=[

Re: start and kill process by command promt

2010-06-21 Thread shanti bhushan
On Jun 21, 10:41 am, shanti bhushan ershantibhus...@gmail.com 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 subprocess import

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

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 m...@timgolden.me.uk 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 because it is being used

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():

subprocess in Command promt+ webbrowser

2010-06-19 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

Re: subprocess in Command promt+ webbrowser

2010-06-19 Thread shanti bhushan
On Jun 19, 11:01 am, shanti bhushan ershantibhus...@gmail.com 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

Re: subprocess in Command promt+ webbrowser

2010-06-19 Thread shanti bhushan
On Jun 19, 11:01 am, shanti bhushan ershantibhus...@gmail.com 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

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

Re: configuration setting for python server

2010-06-14 Thread shanti bhushan
On Jun 15, 5:53 am, David Zaslavsky diaz...@ellipsix.net 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 anything in your

Re: configuration setting for python server

2010-06-14 Thread shanti bhushan
On Jun 15, 5:53 am, David Zaslavsky diaz...@ellipsix.net 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 anything in your

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

2010-06-14 Thread shanti bhushan
() I have designed one html page also. when i access the HTML page ,i want to capture following things user_agents 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

python local web server

2010-06-14 Thread shanti bhushan
in this 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

Re: url fetching from xml depending upon selection

2010-05-18 Thread shanti bhushan
On May 18, 10:18 am, shanti bhushan ershantibhus...@gmail.com wrote: I have a sample.XML file the code is like this ?xml version=1.0 encoding=UTF-8? opml version=1.0 head         titleMy Podcasts/title         dateCreatedSun, 07 Mar 2010 15:53:26 GMT/dateCreated         dateModifiedSun

Re: url fetching from xml depending upon selection

2010-05-18 Thread shanti bhushan
On May 18, 12:04 pm, Stefan Behnel stefan...@behnel.de wrote: shanti bhushan, 18.05.2010 07:18: I have a sample.XML file the code is like this ?xml version=1.0 encoding=UTF-8? opml version=1.0 head    titleMy Podcasts/title    dateCreatedSun, 07 Mar 2010 15:53:26 GMT

Re: url fetching from xml depending upon selection

2010-05-18 Thread shanti bhushan
On May 18, 12:04 pm, Stefan Behnel stefan...@behnel.de wrote: shanti bhushan, 18.05.2010 07:18: I have a sample.XML file the code is like this ?xml version=1.0 encoding=UTF-8? opml version=1.0 head    titleMy Podcasts/title    dateCreatedSun, 07 Mar 2010 15:53:26 GMT

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

url fetching from xml depending upon selection

2010-05-17 Thread shanti bhushan
I have a sample.XML file the code is like this ?xml version=1.0 encoding=UTF-8? opml version=1.0 head titleMy Podcasts/title dateCreatedSun, 07 Mar 2010 15:53:26 GMT/dateCreated dateModifiedSun, 07 Mar 2010 15:53:26 GMT/dateModified /head body TestCase name=Sprint_001

Re: url fetching from xml depending upon selection

2010-05-17 Thread shanti bhushan
On May 18, 10:18 am, shanti bhushan ershantibhus...@gmail.com wrote: I have a sample.XML file the code is like this ?xml version=1.0 encoding=UTF-8? opml version=1.0 head         titleMy Podcasts/title         dateCreatedSun, 07 Mar 2010 15:53:26 GMT/dateCreated         dateModifiedSun

Re: url fetching from xml depending upon selection

2010-05-17 Thread shanti bhushan
On May 18, 10:18 am, shanti bhushan ershantibhus...@gmail.com wrote: I have a sample.XML file the code is like this ?xml version=1.0 encoding=UTF-8? opml version=1.0 head         titleMy Podcasts/title         dateCreatedSun, 07 Mar 2010 15:53:26 GMT/dateCreated         dateModifiedSun