web and standalone access

2010-08-03 Thread S.Selvam
Hi all, I have a case where my application needs to run as a standalone application and also allow web based access. What could the best python framework to implement it. Note : I found Openobject( openerp ) to be of this kind. I hope i can get more ideas here . -- Regards, S.Selvam &qu

Capturing running Application

2010-08-02 Thread S.Selvam
focussed application, update the time spent in some format and display it graphically. I am not sure about the modules that need to be used.I welcome your ideas. -- Regards, S.Selvam " I am because we are " -- http://mail.python.org/mailman/listinfo/python-list

Re: How to pass the shell in Python

2010-07-20 Thread S.Selvam
On Tue, Jul 20, 2010 at 7:11 AM, Ranjith Kumar wrote: > Hi Folks, > Can anyone tell me how to run shell commands using python script. > > For simple work, i generally use os.system call. -- Regards, S.Selvam " I am because we are " -- http://mail.python.org/m

Re: web sound recording with python

2010-03-16 Thread S.Selvam
On Fri, Oct 9, 2009 at 1:10 PM, Michel Claveau - MVP wrote: > Hi! > > On windows, you can record sound who play on the local sound-card. > It is not really Python scripting, but Python can launch it. > Does python do not have support for voice recording ? -- Regards, S.S

Re: zope server on ubuntu 9.10

2009-12-29 Thread S.Selvam
On Tue, Dec 29, 2009 at 1:30 AM, Chris Withers wrote: > S.Selvam wrote: > >> I am using Ubuntu 9.10 and when i tried to install Zope application server >> with the following , >> >> sudo easy_install -i http://download.zope.org/Zope2/index/2.12.1 Zope2 >&

zope server on ubuntu 9.10

2009-12-26 Thread S.Selvam
packages or download links found for zope.browsermenu error: Could not find suitable distribution for Requirement.parse('zope.browsermenu') -- Any suggestions would be helpful . Note: i have installed python-dev as recommended. -- Regards, S.Selvam -- http://mail.python.o

Re: Mechanize - Click a table row to navigate to detail page

2009-12-25 Thread S.Selvam
which parameters. Then > construct that url based on the parameters in the table row's javascript > (which of course you have to parse yourself out of the code) > In firefox you can install LiveHttp Headers addon and can find the needed url. > > Diez > > -- > http://

Re: regex help

2009-12-17 Thread S.Selvam
this : > > > > > 123 > 456 > > > > > > for some reason my regex doesn't work correctly : > > r"().*?( .*?>).*?(?:(.*?)|)?.*?()?" > > If all you need is to remove payload node ,this could be useful, s1="123456..." pat=re.compile(r"") s1=pat.sub("",s1) -- Regards, S.Selvam -- http://mail.python.org/mailman/listinfo/python-list

Re: webscrapping ringcentral.com using mechanize

2009-12-17 Thread S.Selvam
eful, http://stackoverflow.com/questions/1806238/mechanize-python-click-a-button -- Regards, S.Selvam -- http://mail.python.org/mailman/listinfo/python-list

Re: regex remove closest tag

2009-11-12 Thread S.Selvam
On Fri, Nov 13, 2009 at 12:47 AM, MRAB wrote: > S.Selvam wrote: > >> Hi all, >> >> >> 1) I need to remove the tags which is just before the keyword(i.e >> some_text2 ) excluding others. >> >> 2) input string may or may not contain tags. >&g

regex remove closest tag

2009-11-12 Thread S.Selvam
lowing regex, p=re.compile(r'(?P.*?)(\s*keyword|\s*keyword)(?P.*)',re.DOTALL|re.I) s=p.search(inputstr) but second group matches both tags,while i need to match the recent one only. I would like to get your suggestions. Note: If i leave group('good1') as greedy,

Re: how to remove the same words in the paragraph

2009-11-08 Thread S.Selvam
ex may come handy, p=re.compile(r'(.+) .*\1')#note the space s=p.search("python and i love python") s.groups() (' python',) But that matches for only one double word.Someone else could light up here to extract all the double words.Then they can be removed from the original paragraph. > > > > -- > http://mail.python.org/mailman/listinfo/python-list > -- Yours, S.Selvam Sent from Bangalore, KA, India -- http://mail.python.org/mailman/listinfo/python-list

Re: how to remove the same words in the paragraph

2009-11-04 Thread S.Selvam
turn w > ... > >>> r.sub(Dedupe(), p) > > where I leave the definition of "r" to the student. Also beware of > case-differences for which you might have to normalize. > > You'll also want to use more descriptive variable names than my one-letter > tokens. > > -tkc > > > > > > -- > http://mail.python.org/mailman/listinfo/python-list > -- Yours, S.Selvam -- http://mail.python.org/mailman/listinfo/python-list

Re: emptying a list

2009-10-01 Thread S.Selvam
[1, 2, 3, 4] [1, 2, 3, 4] > >>> x = [] > >>> print x, y > [] [1, 2, 3, 4] > >>> x = y > >>> print x, y > [1, 2, 3, 4] [1, 2, 3, 4] > >>> del x[:] > >>> print x, y > [] [] > > Cheers, > Jon. > -- > http://mail.python.org/mailman/listinfo/python-list > -- Yours, S.Selvam -- http://mail.python.org/mailman/listinfo/python-list

Re: recommendation for webapp testing?

2009-09-16 Thread S.Selvam
imple to use. > -- > http://mail.python.org/mailman/listinfo/python-list > -- Yours, S.Selvam -- http://mail.python.org/mailman/listinfo/python-list

Re: Issue with writelines

2009-09-02 Thread S.Selvam
opy_text() > > Traceback: > > File "C:\Python25\Lib\site-packages\pythonwin\pywin\framework > \scriptutils.py", line 310, in RunScript >exec codeObject in __main__.__dict__ > File "C:\Query\DQL Vault Revision Check.py", line 34, in >program_uno() > File "C:\Query\DQL Vault Revision Check.py", line 20, in program_uno >f = ofile.writelines(z) > TypeError: writelines() argument must be a sequence of strings > why can't you print/analyse the 'z ' value on except block. > > > > > -- > http://mail.python.org/mailman/listinfo/python-list > -- Yours, S.Selvam -- http://mail.python.org/mailman/listinfo/python-list

Re: pulldom extracting records from recordset

2009-08-07 Thread S.Selvam
On Fri, Aug 7, 2009 at 6:10 PM, S.Selvam wrote: > Hi all, > > I am using pulldom to handle large xml files.It works fine, but i do not > know how to store a particular set of records(as xml) out of the recordset. > -code- > from xml.dom import pul

pulldom extracting records from recordset

2009-08-07 Thread S.Selvam
number of Records. I have been struggling to figure it out.I would be happy to get a solution for this. -- Yours, S.Selvam -- http://mail.python.org/mailman/listinfo/python-list

Re: Itext for Python

2009-07-27 Thread S.Selvam
.There are some other modules for pdf work but might not be as standard as iText.Surely some senior programmers will suggest you better way to proceed further. > With anticipation, > > SanthoshVKumar. > > -- > http://mail.python.org/mailman/listinfo/python-

Re: Generic web parser

2009-05-18 Thread S.Selvam
On Mon, May 18, 2009 at 1:59 PM, Jeremiah Dodds wrote: > > > On Sat, May 16, 2009 at 2:18 PM, S.Selvam wrote: > >> Hi all, >> >> I have to design web parser which will visit the given list of websites >> and need to fetch a particular set of details. >&g

Generic web parser

2009-05-16 Thread S.Selvam
is already available please let me know ,also your suggestions are welcome. Note: I planned to use BeautifulSoup for parsing. -- Yours, S.Selvam -- http://mail.python.org/mailman/listinfo/python-list

Language detection with python

2009-04-17 Thread S.Selvam
cient. I need a best way to detect english text . I welcome your suggestions ... -- Yours, S.Selvam -- http://mail.python.org/mailman/listinfo/python-list

Reading only headers

2009-04-09 Thread S.Selvam
;,'').find('xml') == -1: raise "Its not xml!" else: """ Read the content and process """ ... Is this the good way to read headers ? ,as i do not want the content ,unless it is xml. Please suggest me,if there are

python php/html file upload issue

2009-03-21 Thread S.Selvam Siva
;post"> Please enter a file name : But the *$_FILES['datafile']['name']* in response is always empty...I can not guess what went wrong with my code , I will be happy, if you can figure out the problem. -- Yours, S.Selvam -- http://mail.python.org/mailman/listinfo/python-list

Need to store dictionary in file

2009-02-23 Thread S.Selvam Siva
ct your ideas/suggestions. Note:I think cPickle,bsddb can be used for this purpose,but i want to know the best solution which runs *faster*. -- Yours, S.Selvam -- http://mail.python.org/mailman/listinfo/python-list

Re: Levenshtein word comparison -performance issue

2009-02-19 Thread S.Selvam Siva
On Sat, Feb 14, 2009 at 3:01 PM, Peter Otten <__pete...@web.de> wrote: > Gabriel Genellina wrote: > > > En Fri, 13 Feb 2009 08:16:00 -0200, S.Selvam Siva < > s.selvams...@gmail.com> > > escribió: > > > >> I need some help. > >> I tried to

Levenshtein word comparison -performance issue

2009-02-13 Thread S.Selvam Siva
code could be improved to work efficiently.Your suggestions are welcome... -- Yours, S.Selvam -- http://mail.python.org/mailman/listinfo/python-list

BeautifulSoup -converting unicode to numerical representaion

2009-02-09 Thread S.Selvam Siva
o want to convert html representation like ’ to its numeric equivalent ’ Thanks in advance. *Note:* The reason for the above requirement is i need a standard way to post to SOLR to avoid errors. -- Yours, S.Selvam -- http://mail.python.org/mailman/listinfo/python-list

Re: string replace for back slash

2009-02-05 Thread S.Selvam Siva
On Thu, Feb 5, 2009 at 5:59 PM, wrote: > "S.Selvam Siva" wrote: > > I tried to do a string replace as follows, > > > > >>> s="hi & people" > > >>> s.replace("&","\&") > > 'hi \\& peo

string replace for back slash

2009-02-05 Thread S.Selvam Siva
Hi all, I tried to do a string replace as follows, >>> s="hi & people" >>> s.replace("&","\&") 'hi \\& people' >>> but i was expecting 'hi \& people'.I dont know ,what is something different here with escape sequence. -- Yours, S.Selvam -- http://mail.python.org/mailman/listinfo/python-list

Re: importing module-performance

2009-02-02 Thread S.Selvam Siva
On Mon, Feb 2, 2009 at 3:11 PM, Chris Rebert wrote: > On Mon, Feb 2, 2009 at 1:29 AM, S.Selvam Siva > wrote: > > Hi all, > > I have a small query, > > Consider there is a task A which i want to perform. > > > > To perform it ,i have two option. > >

importing module-performance

2009-02-02 Thread S.Selvam Siva
performance? -- Yours, S.Selvam -- http://mail.python.org/mailman/listinfo/python-list

Re: date handling problem

2009-01-29 Thread S.Selvam Siva
On Thu, Jan 29, 2009 at 2:27 PM, M.-A. Lemburg wrote: > On 2009-01-29 03:38, Gabriel Genellina wrote: > > En Wed, 28 Jan 2009 18:55:21 -0200, S.Selvam Siva > > escribió: > > > >> I need to parse rss-feeds based on time stamp,But rss-feeds follow > >> diffe

date handling problem

2009-01-28 Thread S.Selvam Siva
Hi all, I need to parse rss-feeds based on time stamp,But rss-feeds follow different standards of date(IST,EST etc). I dont know,how to standardize this standards.It will be helpful if you can hint me. -- Yours, S.Selvam -- http://mail.python.org/mailman/listinfo/python-list

Re: String comparision

2009-01-25 Thread S.Selvam Siva
Thank You Gabriel, On Sun, Jan 25, 2009 at 7:12 AM, Gabriel Genellina wrote: > En Sat, 24 Jan 2009 15:08:08 -0200, S.Selvam Siva > escribió: > > > I am developing spell checker for my local language(tamil) using python. >> I need to generate alternative word list for a m

String comparision

2009-01-24 Thread S.Selvam Siva
. Any suggestion for this problem is welcome. -- Yours, S.Selvam -- http://mail.python.org/mailman/listinfo/python-list

Re: python resource management

2009-01-20 Thread S.Selvam Siva
th > each feed. > > --Tim > > I have found the actual solution for this problem. I tried using *BeautifulSoup.SoupStrainer()* and it improved memory usage to the greatest extent.Now it uses max of 20 MB(earlier it was >800 MB on 1GB RAM system). thanks all

python resource management

2009-01-20 Thread S.Selvam Siva
Hi all, I have found the actual solution for this problem. I tried using BeautifulSoup.SoupStrainer() and it improved memory usage to the greatest extent.Now it uses max of 20 MB(earlier it was >800 MB on 1GB RAM system). thanks all. -- Yours, S.Selvam -- http://mail.python.

python resource management

2009-01-19 Thread S.Selvam Siva
comes down to 0% (may be due to excessive paging). We tried 'del soup_object' and used 'gc.collect()'. But, no improvement. Please guide me how to limit python's memory-usage or proper method for handling BeautifulSoup object in resource effective manner --

Re: Extracting real-domain-name (without sub-domains) from a given URL

2009-01-13 Thread S.Selvam Siva
On Tue, Jan 13, 2009 at 1:50 PM, Chris Rebert wrote: > > On Mon, Jan 12, 2009 at 11:46 PM, S.Selvam Siva > wrote: > > Hi all, > > > > I need to extract the domain-name from a given url(without sub-domains). > > With urlparse, i am able to fetch only the domai

Extracting real-domain-name (without sub-domains) from a given URL

2009-01-12 Thread S.Selvam Siva
or huffingtonpost.de** * Please suggest me some ideas regarding this problem. -- Yours, S.Selvam -- http://mail.python.org/mailman/listinfo/python-list

pygtkspell-help

2009-01-01 Thread S.Selvam Siva
googling.It will be nice if someone can direct me in right way(may be by giving appropriate links or example program) -- Yours, S.Selvam -- http://mail.python.org/mailman/listinfo/python-list

Re: Posting File as a parameter to PHP/HTML using HTTP POST

2008-12-02 Thread S.Selvam Siva
ilename="newurl-ideas.txt",name="uploadedfile") > On Tue, Dec 2, 2008 at 1:33 PM, S.Selvam Siva <[EMAIL PROTECTED]>wrote: > I am trying to post file from python to php using HTTP POST method. I tried > mechanize but not able to pass the file object. >

Posting File as a parameter to PHP/HTML using HTTP POST

2008-12-02 Thread S.Selvam Siva
ntform-0.2.9-py2.5.egg\ClientForm.py", line 2880, in __setitem__ ValueError: value attribute is readonly But, When uploading is done using browser, it works. -- Yours, S.Selvam -- http://mail.python.org/mailman/listinfo/python-list

parsing javascript

2008-10-12 Thread S.Selvam Siva
I have to do a parsing on webpagesand fetch urls.My problem is ,many urls i need to parse are dynamically loaded using javascript function (onload()).How to fetch those links from python? Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list