From maniandram01 at gmail.com Sat Sep 1 04:35:13 2012 From: maniandram01 at gmail.com (Ramchandra Apte) Date: Sat, 1 Sep 2012 08:05:13 +0530 Subject: [BangPypers] Hash function that returns unsigned integer In-Reply-To: References: Message-ID: We could use pow(character,somenumber,mod) to do it. It is secure but it may not be fast enough. From metafusion at gmail.com Sat Sep 1 12:00:45 2012 From: metafusion at gmail.com (Shuhaib Shariff) Date: Sat, 1 Sep 2012 15:30:45 +0530 Subject: [BangPypers] [JOBS] Python Developers with 1 Yr Experience Message-ID: DoubleSpring seeks passionate PYTHON developers with experience in building or contributing to Open Source projects. We are constantly rolling out new products so the right individual would be able to write clean code and work in a fast pace environment. We highly value native ability, passion and the right attitude. Requirements - Be smart and be passionate. - Technical proficiency with Python and Django. - Technical proficiency in JavaScript. - Experience with MySQL / PgSQL. - Experience with MVC design patterns and solid algorithm skills. - 1 year of industry experience - B.E. in Computer Science or equivalent degree required. Location: Bangalore How to apply Send your resume to: careers at doublespring.com From maniandram01 at gmail.com Sat Sep 1 14:51:16 2012 From: maniandram01 at gmail.com (Ramchandra Apte) Date: Sat, 1 Sep 2012 18:21:16 +0530 Subject: [BangPypers] [JOBS] Python Developers with 1 Yr Experience In-Reply-To: References: Message-ID: Define "smart". On 1 September 2012 15:30, Shuhaib Shariff wrote: > DoubleSpring seeks passionate PYTHON developers with experience in > building or contributing to Open Source projects. We are constantly rolling > out new products so the right individual would be able to write clean code > and work in a fast pace environment. > > We highly value native ability, passion and the right attitude. > > Requirements > - Be smart and be passionate. > - Technical proficiency with Python and Django. > - Technical proficiency in JavaScript. > - Experience with MySQL / PgSQL. > - Experience with MVC design patterns and solid algorithm skills. > - 1 year of industry experience > - B.E. in Computer Science or equivalent degree required. > > Location: Bangalore > > How to apply > Send your resume to: careers at doublespring.com > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From metafusion at gmail.com Sun Sep 2 18:06:50 2012 From: metafusion at gmail.com (Shuhaib Shariff) Date: Sun, 2 Sep 2012 21:36:50 +0530 Subject: [BangPypers] [JOBS] Python Developers with 1 Yr Experience Message-ID: Smart people tend to be successful at things they pursue in life. Its likely that their personal/professional circle will notice this quality and attest. If you've rarely succeeded at anything, nobody has every mentioned that you are smart or you love PHP ... don't lose hope. There are many companies looking for you; but please excuse us! On Sun, Sep 2, 2012 at 3:30 PM, wrote: > Send BangPypers mailing list submissions to > bangpypers at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/bangpypers > or, via email, send a message with subject or body 'help' to > bangpypers-request at python.org > > You can reach the person managing the list at > bangpypers-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of BangPypers digest..." > > > Today's Topics: > > 1. [JOBS] Python Developers with 1 Yr Experience (Shuhaib Shariff) > 2. Re: [JOBS] Python Developers with 1 Yr Experience > (Ramchandra Apte) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 1 Sep 2012 15:30:45 +0530 > From: Shuhaib Shariff > To: bangpypers at python.org > Subject: [BangPypers] [JOBS] Python Developers with 1 Yr Experience > Message-ID: > < > CAAAXCkymvHn9Y4TZdWkjdTZ48g3s8i5d5_gHOto5HjwEUL+5yQ at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > DoubleSpring seeks passionate PYTHON developers with experience in > building or contributing to Open Source projects. We are constantly rolling > out new products so the right individual would be able to write clean code > and work in a fast pace environment. > > We highly value native ability, passion and the right attitude. > > Requirements > - Be smart and be passionate. > - Technical proficiency with Python and Django. > - Technical proficiency in JavaScript. > - Experience with MySQL / PgSQL. > - Experience with MVC design patterns and solid algorithm skills. > - 1 year of industry experience > - B.E. in Computer Science or equivalent degree required. > > Location: Bangalore > > How to apply > Send your resume to: careers at doublespring.com > > > ------------------------------ > > Message: 2 > Date: Sat, 1 Sep 2012 18:21:16 +0530 > From: Ramchandra Apte > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] [JOBS] Python Developers with 1 Yr > Experience > Message-ID: > rieetxL6n61F7RA at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Define "smart". > On 1 September 2012 15:30, Shuhaib Shariff wrote: > > > DoubleSpring seeks passionate PYTHON developers with experience in > > building or contributing to Open Source projects. We are constantly > rolling > > out new products so the right individual would be able to write clean > code > > and work in a fast pace environment. > > > > We highly value native ability, passion and the right attitude. > > > > Requirements > > - Be smart and be passionate. > > - Technical proficiency with Python and Django. > > - Technical proficiency in JavaScript. > > - Experience with MySQL / PgSQL. > > - Experience with MVC design patterns and solid algorithm skills. > > - 1 year of industry experience > > - B.E. in Computer Science or equivalent degree required. > > > > Location: Bangalore > > > > How to apply > > Send your resume to: careers at doublespring.com > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > > ------------------------------ > > End of BangPypers Digest, Vol 61, Issue 2 > ***************************************** > From noufal at nibrahim.net.in Sun Sep 2 18:29:25 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Sun, 02 Sep 2012 21:59:25 +0530 Subject: [BangPypers] [JOBS] Python Developers with 1 Yr Experience In-Reply-To: (Shuhaib Shariff's message of "Sun, 2 Sep 2012 21:36:50 +0530") References: Message-ID: <87fw70mlqy.fsf@sanitarium.localdomain> Shuhaib Shariff writes: > Smart people tend to be successful at things they pursue in life. Its > likely that their personal/professional circle will notice this > quality and attest. This was clear and succinct. > If you've rarely succeeded at anything, nobody has every mentioned > that you are smart or you love PHP ... don't lose hope. There are many > companies looking for you; but please excuse us! This, I think, will piss of quite a few companies as well as potential candidates. [...] -- Cordially, Noufal http://nibrahim.net.in From dialkforkaushik at gmail.com Sun Sep 2 19:21:18 2012 From: dialkforkaushik at gmail.com (Kaushik Kalyanaraman) Date: Sun, 2 Sep 2012 12:21:18 -0500 Subject: [BangPypers] [JOBS] Python Developers with 1 Yr Experience In-Reply-To: <87fw70mlqy.fsf@sanitarium.localdomain> References: <87fw70mlqy.fsf@sanitarium.localdomain> Message-ID: On Sun, Sep 2, 2012 at 11:29 AM, Noufal Ibrahim wrote: > Shuhaib Shariff writes: > >> Smart people tend to be successful at things they pursue in life. Its >> likely that their personal/professional circle will notice this >> quality and attest. > > This was clear and succinct. Not really ! In fact, the whole exchange (before Noufal pipped in) comes across, in my personal opinion, as mildly insensitive, somewhat naive and perhaps even elitist. And, this may very well be common parlance (which I can't confirm). I can go on and rant about this (though probably not here) but in the spirit of Noufal's short reply, I will pass. However, having never worked in the software/IT industry, I am going to take a long shot and suggest that perhaps both employers and employees tend to use language with jargon, buzz words, and other unspecified-but-understood terms without possibly determining what they may end up conveying. (Skipping classification, words like smart, technically proficient, hardworking, team player, etc. are what I am referring to.) Just my two ... . -- To know that we know what we know, and that we do not know what we do not know, that is true knowledge. From yoganand at gmx.com Mon Sep 3 11:38:25 2012 From: yoganand at gmx.com (Yoganand Anandaraju) Date: Mon, 03 Sep 2012 11:38:25 +0200 Subject: [BangPypers] Hash function that returns unsigned integer Message-ID: <20120903093825.164730@gmx.com> I found pyhash library. pyhash.murmur3_32() solved the problem. http://code.google.com/p/pyfasthash/ http://code.google.com/p/smhasher/ ----- Original Message ----- From: Philippe May Sent: 08/31/12 07:26 PM To: bangpypers at python.org Subject: Re: [BangPypers] Hash function that returns unsigned integer The probability of getting non unique values is logically multiplied by 2 using the modulo method. If you don't mind dealing with long integers, you can simply add the absolute value of the minimum integer: hash(value) + sys.maxint + 1. In any case, i think it's better to use sys.maxint, instead of 2**32. > Will that be unique(near unique)? Want to make sure hashing someother string will not produce the same hash value. >> Just modulo the hash function `hash_value % (2**32)` >>> Is anyone aware of any non-cryptographic hash function whose value is only postive integer. Pythons inbuilt hash function is a signed integer. _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From nitin.nitp at gmail.com Fri Sep 7 10:02:42 2012 From: nitin.nitp at gmail.com (Nitin Kumar) Date: Fri, 7 Sep 2012 13:32:42 +0530 Subject: [BangPypers] hook file download Message-ID: Hi All, I want to get a control to python before a file start downloading using any explorer or download manager. Do we have any module or sample code to do the same. -- Nitin K From noufal at nibrahim.net.in Fri Sep 7 12:12:33 2012 From: noufal at nibrahim.net.in (Noufal Ibrahim) Date: Fri, 07 Sep 2012 15:42:33 +0530 Subject: [BangPypers] hook file download In-Reply-To: (Nitin Kumar's message of "Fri, 7 Sep 2012 13:32:42 +0530") References: Message-ID: <87bohi87la.fsf@sanitarium.localdomain> Nitin Kumar writes: > Hi All, > > I want to get a control to python before a file start downloading using any > explorer or download manager. Can you elaborate a little? Are you talking about the file being accessed on a server by a remote client? Where is your program running? > Do we have any module or sample code to do the same. -- Cordially, Noufal http://nibrahim.net.in From cjgiridhar at gmail.com Fri Sep 7 12:24:28 2012 From: cjgiridhar at gmail.com (chetan giridhar) Date: Fri, 7 Sep 2012 15:54:28 +0530 Subject: [BangPypers] hook file download In-Reply-To: <87bohi87la.fsf@sanitarium.localdomain> References: <87bohi87la.fsf@sanitarium.localdomain> Message-ID: Do you want to monitor system events or processes? In general, ctypes.windll.user32.SetWindowsHookExA or ctypes.windll.kernel32 help, but I would suggest using lower level languages like C/C++.. On Fri, Sep 7, 2012 at 3:42 PM, Noufal Ibrahim wrote: > Nitin Kumar writes: > > > Hi All, > > > > I want to get a control to python before a file start downloading using > any > > explorer or download manager. > > Can you elaborate a little? Are you talking about the file being > accessed on a server by a remote client? Where is your program running? > > > Do we have any module or sample code to do the same. > > -- > Cordially, > Noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Chetan http://technobeans.com From nitin.nitp at gmail.com Fri Sep 7 12:29:44 2012 From: nitin.nitp at gmail.com (Nitin Kumar) Date: Fri, 7 Sep 2012 15:59:44 +0530 Subject: [BangPypers] hook file download In-Reply-To: <87bohi87la.fsf@sanitarium.localdomain> References: <87bohi87la.fsf@sanitarium.localdomain> Message-ID: Say for example: from a site http://www.winzip.com/downwz.htm we click "download" button. So i file download will start. but I want to do some other activities before file start to download. so is there a way to pause start of download do some activity and then start the download using python. Hope this time I am bit clear. Nitin K On Fri, Sep 7, 2012 at 3:42 PM, Noufal Ibrahim wrote: > Nitin Kumar writes: > > > Hi All, > > > > I want to get a control to python before a file start downloading using > any > > explorer or download manager. > > Can you elaborate a little? Are you talking about the file being > accessed on a server by a remote client? Where is your program running? > > > Do we have any module or sample code to do the same. > > -- > Cordially, > Noufal > http://nibrahim.net.in > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Nitin K From palakmathur at gmail.com Fri Sep 7 14:05:09 2012 From: palakmathur at gmail.com (Palak Mathur) Date: Fri, 7 Sep 2012 17:35:09 +0530 Subject: [BangPypers] hook file download In-Reply-To: References: <87bohi87la.fsf@sanitarium.localdomain> Message-ID: So, you mean you want to halt the download from some site (that you do not control), do some stuff and then download begins? Regards, Palak Mathur http://palakmathur.wordpress.com http://vicharvahak.wordpress.com http://aatmiyata.wordpress.com http://palakmathur.blogspot.com On Fri, Sep 7, 2012 at 3:59 PM, Nitin Kumar wrote: > Say for example: > > from a site http://www.winzip.com/downwz.htm we click "download" button. > So i file download will start. > but I want to do some other activities before file start to download. so is > there a way to pause start of download do some activity and then start the > download using python. > > Hope this time I am bit clear. > > Nitin K > > On Fri, Sep 7, 2012 at 3:42 PM, Noufal Ibrahim >wrote: > > > Nitin Kumar writes: > > > > > Hi All, > > > > > > I want to get a control to python before a file start downloading using > > any > > > explorer or download manager. > > > > Can you elaborate a little? Are you talking about the file being > > accessed on a server by a remote client? Where is your program running? > > > > > Do we have any module or sample code to do the same. > > > > -- > > Cordially, > > Noufal > > http://nibrahim.net.in > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Nitin K > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From gora at mimirtech.com Fri Sep 7 14:48:12 2012 From: gora at mimirtech.com (Gora Mohanty) Date: Fri, 7 Sep 2012 18:18:12 +0530 Subject: [BangPypers] hook file download In-Reply-To: References: <87bohi87la.fsf@sanitarium.localdomain> Message-ID: On 7 September 2012 15:59, Nitin Kumar wrote: > Say for example: > > from a site http://www.winzip.com/downwz.htm we click "download" button. > So i file download will start. > but I want to do some other activities before file start to download. so is > there a way to pause start of download do some activity and then start the > download using python. > If I understand correctly, you are looking for background task processing, such as is provided by Celery: http://www.celeryproject.org/ Regards, Gora From steve at lonetwin.net Fri Sep 7 19:38:17 2012 From: steve at lonetwin.net (steve) Date: Fri, 07 Sep 2012 23:08:17 +0530 Subject: [BangPypers] hook file download In-Reply-To: References: <87bohi87la.fsf@sanitarium.localdomain> Message-ID: <504A3109.60204@lonetwin.net> Hi, On Friday 07 September 2012 03:59 PM, Nitin Kumar wrote: > Say for example: > > from a site http://www.winzip.com/downwz.htm we click "download" button. > So i file download will start. > but I want to do some other activities before file start to download. so is > there a way to pause start of download do some activity and then start the > download using python. > > Hope this time I am bit clear. > Not entirely. What exactly are you trying to achieve ? If you are trying to do this as part of testing, take a look at Selenium ( http://seleniumhq.org/ ) or mechanize ( http://wwwsearch.sourceforge.net/mechanize/ ). If, otoh, you are trying to automate something using a browser (as opposed to doing it from the command line, for instance using twill - http://twill.idyll.org/ ) then I'd suggest using javascript or creating/hacking an existing download manager extension. hth, cheers, - steve <...snip...> From anandology at gmail.com Tue Sep 11 08:26:22 2012 From: anandology at gmail.com (Anand Chitipothu) Date: Tue, 11 Sep 2012 11:56:22 +0530 Subject: [BangPypers] [OT] [Commercial] Advanced Python Training Course Message-ID: Hi, I'm conducting a two day training on Advanced Python programming on October 6th and 7th. For more information, please visit the course page at: http://advancedpython.doattend.com/ Please contact me offline if you have any questions. Thanks, Anand From suprabha.ekka at gmail.com Wed Sep 19 12:39:35 2012 From: suprabha.ekka at gmail.com (suprabha ekka) Date: Wed, 19 Sep 2012 16:09:35 +0530 Subject: [BangPypers] help needed to in Client Cookie module Message-ID: Hi , I wanted to download a file from a content url . The content of the file is pdf/doc/docx/.xls/ any ms supported file. The simple text file i am able to download but i am unbal eto download any other file. The snippet of the code is : import urllib2 import urllib import ClientCookie import sys cj = ClientCookie.LWPCookieJar() opener = ClientCookie.build_opener(urllib2.HTTPSHandler(), ClientCookie.HTTPCookieProcessor(cj)) ClientCookie.install_opener(opener) # input-type values from the html form txtdata = {'userid':'****************','password':'**********************'} data = urllib.urlencode(txtdata) req3 = ClientCookie.Request("**************************8" ,data) handle3 = ClientCookie.urlopen(req3) content=handle3.read() print content Can any one tell me while i am able to download the content of simple text file but why i am not abl to download the ppt/pdf/ etc file. and how can i do it. Can anyone respond ASAP. Thanks in advance. -Suprabha From maniandram01 at gmail.com Wed Sep 19 17:30:39 2012 From: maniandram01 at gmail.com (Ramchandra Apte) Date: Wed, 19 Sep 2012 21:00:39 +0530 Subject: [BangPypers] help needed to in Client Cookie module In-Reply-To: References: Message-ID: On 19 September 2012 16:09, suprabha ekka wrote: > Hi , > > I wanted to download a file from a content url . The content of the file is > pdf/doc/docx/.xls/ any ms supported file. > The simple text file i am able to download but i am unbal eto download any > other file. > The snippet of the code is : > > import urllib2 > import urllib > import ClientCookie > > import sys > cj = ClientCookie.LWPCookieJar() > opener = ClientCookie.build_opener(urllib2.HTTPSHandler(), > ClientCookie.HTTPCookieProcessor(cj)) > ClientCookie.install_opener(opener) > # input-type values from the html form > txtdata = {'userid':'****************','password':'**********************'} > data = urllib.urlencode(txtdata) > > req3 = ClientCookie.Request("**************************8" ,data) > handle3 = ClientCookie.urlopen(req3) > content=handle3.read() > print content > > Can any one tell me while i am able to download the content of simple text > file but why i am not abl to download the ppt/pdf/ etc file. and how can i > do it. > Can anyone respond ASAP. > > Thanks in advance. > > -Suprabha > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > Please elobrate on the error (explain in more detail) From talk-noreply at google.com Wed Sep 19 15:41:45 2012 From: talk-noreply at google.com (Google Talk) Date: Wed, 19 Sep 2012 06:41:45 -0700 Subject: [BangPypers] Invitation to use Google Talk Message-ID: ----------------------------------------------------------------------- You've been invited by suprabha ekka to use Google Talk. If you already have a Google account, login to Gmail and accept this chat invitation: http://mail.google.com/mail/b-15398a66b9-db383e9d0b-m97WIBgu_USqcCtuouIVrLeRLxE To sign up for a Google account and get started with Google Talk, you can visit: http://mail.google.com/mail/a-15398a66b9-db383e9d0b-m97WIBgu_USqcCtuouIVrLeRLxE?pc=en-rf---a Learn more at: http://www.google.com/intl/en/landing/accounts/ Thanks, The Google Team From suprabha.ekka at gmail.com Thu Sep 20 07:31:03 2012 From: suprabha.ekka at gmail.com (suprabha ekka) Date: Thu, 20 Sep 2012 11:01:03 +0530 Subject: [BangPypers] help needed to in Client Cookie module In-Reply-To: References: Message-ID: I am providing the complete code .... import urllib2 import urllib import ClientCookie import ClientForm import sys cj = ClientCookie.LWPCookieJar() opener = ClientCookie.build_opener(urllib2.HTTPSHandler(), ClientCookie.HTTPCookieProcessor(cj)) ClientCookie.install_opener(opener) # input-type values from the html form txtdata = {'userid':'asdcsearch.gen','password':'Asdc1234'} data = urllib.urlencode(txtdata) req3 = ClientCookie.Request(" https://cdx-stage.cisco.com/ecm/view/objectId/090dca388003e67c" ,data) handle3 = ClientCookie.urlopen(req3) content=handle3.read() print content https://cdx-stage.cisco.com/ecm/view/objectId/090dca388003e67c is a download url ....So when i try downloading the url after providing the authentication i will able to downlaod the content as ita simple text file. But if it is a pdf or any other file it not able to downlaod the file. Like take for example :- https://cdx-stage.cisco.com/ecm/view/objectId/090dca388003e726 --> this a doc file. And i am unable to get the content. But for the download url : https://cdx-stage.cisco.com/ecm/view/objectId/090dca388003e67c --> this is a simple text file. I am able to get the content. The content is {"fileName":"s3223-ipservicesk9-mz.122-33.SRE4.bin","publishDate":"31-MAY-2011","featSetDesc":"IP SERVICES SSH","featInd":"Y","migrReleaseVersion":"","migrLifeCycle":"","minDram":"512","advisoryType":"SOFTWARE","featSetDescId":"1242","certificate":undefined,"migrSoftwareType":"","fileSize":"97811932","minFlash":"256","accessLevel":2,"advisoryUrl":" http://www.cisco.com/web/software/DefTracker/280805679/SA/ac104828.html ","migrSoftwareConceptId":"","releaseFlag":"N","migrOperatingSystem":"","imageGuid":"7281E1D75D664CBFF5DECB3DEB426F1CA07ED989","fileDesc":"","migrRetirementDate":""} The file other than the simple text file doesnt get downloaded.Thats the issue. i hope that is clear. Thanks, Suprabha On Wed, Sep 19, 2012 at 9:00 PM, Ramchandra Apte wrote: > On 19 September 2012 16:09, suprabha ekka wrote: > > > Hi , > > > > I wanted to download a file from a content url . The content of the file > is > > pdf/doc/docx/.xls/ any ms supported file. > > The simple text file i am able to download but i am unbal eto download > any > > other file. > > The snippet of the code is : > > > > import urllib2 > > import urllib > > import ClientCookie > > > > import sys > > cj = ClientCookie.LWPCookieJar() > > opener = ClientCookie.build_opener(urllib2.HTTPSHandler(), > > ClientCookie.HTTPCookieProcessor(cj)) > > ClientCookie.install_opener(opener) > > # input-type values from the html form > > txtdata = > {'userid':'****************','password':'**********************'} > > data = urllib.urlencode(txtdata) > > > > req3 = ClientCookie.Request("**************************8" ,data) > > handle3 = ClientCookie.urlopen(req3) > > content=handle3.read() > > print content > > > > Can any one tell me while i am able to download the content of simple > text > > file but why i am not abl to download the ppt/pdf/ etc file. and how > can i > > do it. > > Can anyone respond ASAP. > > > > Thanks in advance. > > > > -Suprabha > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > Please elobrate on the error (explain in more detail) > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From yoganand at gmx.com Thu Sep 20 08:42:39 2012 From: yoganand at gmx.com (Yoganand Anandaraju) Date: Thu, 20 Sep 2012 08:42:39 +0200 Subject: [BangPypers] help needed to in Client Cookie module Message-ID: <20120920064239.164750@gmx.com> Do you get any errors when downloading the pdf? ----- Original Message ----- From: suprabha ekka Sent: 09/20/12 11:01 AM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] help needed to in Client Cookie module I am providing the complete code .... import urllib2 import urllib import ClientCookie import ClientForm import sys cj = ClientCookie.LWPCookieJar() opener = ClientCookie.build_opener(urllib2.HTTPSHandler(), ClientCookie.HTTPCookieProcessor(cj)) ClientCookie.install_opener(opener) # input-type values from the html form txtdata = {'userid':'asdcsearch.gen','password':'Asdc1234'} data = urllib.urlencode(txtdata) req3 = ClientCookie.Request(" https://cdx-stage.cisco.com/ecm/view/objectId/090dca388003e67c" ,data) handle3 = ClientCookie.urlopen(req3) content=handle3.read() print content https://cdx-stage.cisco.com/ecm/view/objectId/090dca388003e67c is a download url ....So when i try downloading the url after providing the authentication i will able to downlaod the content as ita simple text file. But if it is a pdf or any other file it not able to downlaod the file. Like take for example :- https://cdx-stage.cisco.com/ecm/view/objectId/090dca388003e726 --> this a doc file. And i am unable to get the content. But for the download url : https://cdx-stage.cisco.com/ecm/view/objectId/090dca388003e67c --> this is a simple text file. I am able to get the content. The content is {"fileName":"s3223-ipservicesk9-mz.122-33.SRE4.bin","publishDate":"31-MAY-2011","featSetDesc":"IP SERVICES SSH","featInd":"Y","migrReleaseVersion":"","migrLifeCycle":"","minDram":"512","advisoryType":"SOFTWARE","featSetDescId":"1242","certificate":undefined,"migrSoftwareType":"","fileSize":"97811932","minFlash":"256","accessLevel":2,"advisoryUrl":" http://www.cisco.com/web/software/DefTracker/280805679/SA/ac104828.html ","migrSoftwareConceptId":"","releaseFlag":"N","migrOperatingSystem":"","imageGuid":"7281E1D75D664CBFF5DECB3DEB426F1CA07ED989","fileDesc":"","migrRetirementDate":""} The file other than the simple text file doesnt get downloaded.Thats the issue. i hope that is clear. Thanks, Suprabha On Wed, Sep 19, 2012 at 9:00 PM, Ramchandra Apte wrote: > On 19 September 2012 16:09, suprabha ekka wrote: > > > Hi , > > > > I wanted to download a file from a content url . The content of the file > is > > pdf/doc/docx/.xls/ any ms supported file. > > The simple text file i am able to download but i am unbal eto download > any > > other file. > > The snippet of the code is : > > > > import urllib2 > > import urllib > > import ClientCookie > > > > import sys > > cj = ClientCookie.LWPCookieJar() > > opener = ClientCookie.build_opener(urllib2.HTTPSHandler(), > > ClientCookie.HTTPCookieProcessor(cj)) > > ClientCookie.install_opener(opener) > > # input-type values from the html form > > txtdata = > {'userid':'****************','password':'**********************'} > > data = urllib.urlencode(txtdata) > > > > req3 = ClientCookie.Request("**************************8" ,data) > > handle3 = ClientCookie.urlopen(req3) > > content=handle3.read() > > print content > > > > Can any one tell me while i am able to download the content of simple > text > > file but why i am not abl to download the ppt/pdf/ etc file. and how > can i > > do it. > > Can anyone respond ASAP. > > > > Thanks in advance. > > > > -Suprabha > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > Please elobrate on the error (explain in more detail) > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers Regards, Yoganand From suprabha.ekka at gmail.com Thu Sep 20 09:01:18 2012 From: suprabha.ekka at gmail.com (suprabha ekka) Date: Thu, 20 Sep 2012 12:31:18 +0530 Subject: [BangPypers] help needed to in Client Cookie module In-Reply-To: <20120920064239.164750@gmx.com> References: <20120920064239.164750@gmx.com> Message-ID: no i don't get ny errors ....but i get an infinite display of unknown characters.....if u execute the code u wud cum to know with the download url for pdf. -suprabha On Thu, Sep 20, 2012 at 12:12 PM, Yoganand Anandaraju wrote: > Do you get any errors when downloading the pdf? > > ----- Original Message ----- > From: suprabha ekka > Sent: 09/20/12 11:01 AM > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] help needed to in Client Cookie module > > I am providing the complete code .... import urllib2 import urllib import > ClientCookie import ClientForm import sys cj = ClientCookie.LWPCookieJar() > opener = ClientCookie.build_opener(urllib2.HTTPSHandler(), > ClientCookie.HTTPCookieProcessor(cj)) ClientCookie.install_opener(opener) # > input-type values from the html form txtdata = > {'userid':'asdcsearch.gen','password':'Asdc1234'} data = > urllib.urlencode(txtdata) req3 = ClientCookie.Request(" > https://cdx-stage.cisco.com/ecm/view/objectId/090dca388003e67c" ,data) > handle3 = ClientCookie.urlopen(req3) content=handle3.read() print content > https://cdx-stage.cisco.com/ecm/view/objectId/090dca388003e67c is a > download url ....So when i try downloading the url after providing the > authentication i will able to downlaod the content as ita simple text file. > But if it is a pdf or any other file it not able to downlaod the file. Like > take for example :- > https://cdx-stage.cisco.com/ecm/view/objectId/090dca388003e726 --> this a > doc file. And i am unab > le to get the content. But for the download url : > https://cdx-stage.cisco.com/ecm/view/objectId/090dca388003e67c --> this > is a simple text file. I am able to get the content. The content is > {"fileName":"s3223-ipservicesk9-mz.122-33.SRE4.bin","publishDate":"31-MAY-2011","featSetDesc":"IP > SERVICES > SSH","featInd":"Y","migrReleaseVersion":"","migrLifeCycle":"","minDram":"512","advisoryType":"SOFTWARE","featSetDescId":"1242","certificate":undefined,"migrSoftwareType":"","fileSize":"97811932","minFlash":"256","accessLevel":2,"advisoryUrl":" > http://www.cisco.com/web/software/DefTracker/280805679/SA/ac104828.html","migrSoftwareConceptId":"","releaseFlag":"N","migrOperatingSystem":"","imageGuid":"7281E1D75D664CBFF5DECB3DEB426F1CA07ED989","fileDesc":"","migrRetirementDate":""} > The file other than the simple text file doesnt get downloaded.Thats the > issue. i hope that is clear. Thanks, Suprabha On Wed, Sep 19, 2012 at 9:00 > PM, Ramchandra Apte wrote: > On 19 September 2 > 012 16:09, suprabha ekka wrote: > > > Hi , > > > > > I wanted to download a file from a content url . The content of the > file > is > > pdf/doc/docx/.xls/ any ms supported file. > > The simple text > file i am able to download but i am unbal eto download > any > > other > file. > > The snippet of the code is : > > > > import urllib2 > > import > urllib > > import ClientCookie > > > > import sys > > cj = > ClientCookie.LWPCookieJar() > > opener = > ClientCookie.build_opener(urllib2.HTTPSHandler(), > > > ClientCookie.HTTPCookieProcessor(cj)) > > > ClientCookie.install_opener(opener) > > # input-type values from the html > form > > txtdata = > > {'userid':'****************','password':'**********************'} > > data > = urllib.urlencode(txtdata) > > > > req3 = > ClientCookie.Request("**************************8" ,data) > > handle3 = > ClientCookie.urlopen(req3) > > content=handle3.read() > > print content > > > > > Can any one tell me while i am able to download the content of simple > > text > > file but why i am not abl to download the ppt/pdf/ etc file. > and how > can i > > do it. > > Can anyone respond ASAP. > > > > Thanks in > advance. > > > > -Suprabha > > > _______________________________________________ > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > Please elobrate > on the error (explain in more detail) > > _______________________________________________ > BangPypers mailing list > > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers> _______________________________________________ BangPypers mailing list > BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers > > > > Regards, > Yoganand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From suprabha.ekka at gmail.com Thu Sep 20 09:02:50 2012 From: suprabha.ekka at gmail.com (suprabha ekka) Date: Thu, 20 Sep 2012 12:32:50 +0530 Subject: [BangPypers] help needed to in Client Cookie module In-Reply-To: References: <20120920064239.164750@gmx.com> Message-ID: On Thu, Sep 20, 2012 at 12:31 PM, suprabha ekka wrote: > no i don't get ny errors ....but i get an infinite display of unknown > characters.....if u execute the code u wud cum to know with the download > url for pdf. > > -suprabha > > > On Thu, Sep 20, 2012 at 12:12 PM, Yoganand Anandaraju wrote: > >> Do you get any errors when downloading the pdf? >> >> ----- Original Message ----- >> From: suprabha ekka >> Sent: 09/20/12 11:01 AM >> To: Bangalore Python Users Group - India >> Subject: Re: [BangPypers] help needed to in Client Cookie module >> >> I am providing the complete code .... import urllib2 import urllib >> import ClientCookie import ClientForm import sys cj = >> ClientCookie.LWPCookieJar() opener = >> ClientCookie.build_opener(urllib2.HTTPSHandler(), >> ClientCookie.HTTPCookieProcessor(cj)) ClientCookie.install_opener(opener) # >> input-type values from the html form txtdata = >> {'userid':'asdcsearch.gen','password':'Asdc1234'} data = >> urllib.urlencode(txtdata) req3 = ClientCookie.Request(" >> https://cdx-stage.cisco.com/ecm/view/objectId/090dca388003e67c" ,data) >> handle3 = ClientCookie.urlopen(req3) content=handle3.read() print content >> https://cdx-stage.cisco.com/ecm/view/objectId/090dca388003e67c is a >> download url ....So when i try downloading the url after providing the >> authentication i will able to downlaod the content as ita simple text file. >> But if it is a pdf or any other file it not able to downlaod the file. Like >> take for example :- >> https://cdx-stage.cisco.com/ecm/view/objectId/090dca388003e726 --> this >> a doc file. And i am unab >> le to get the content. But for the download url : >> https://cdx-stage.cisco.com/ecm/view/objectId/090dca388003e67c --> this >> is a simple text file. I am able to get the content. The content is >> {"fileName":"s3223-ipservicesk9-mz.122-33.SRE4.bin","publishDate":"31-MAY-2011","featSetDesc":"IP >> SERVICES >> SSH","featInd":"Y","migrReleaseVersion":"","migrLifeCycle":"","minDram":"512","advisoryType":"SOFTWARE","featSetDescId":"1242","certificate":undefined,"migrSoftwareType":"","fileSize":"97811932","minFlash":"256","accessLevel":2,"advisoryUrl":" >> http://www.cisco.com/web/software/DefTracker/280805679/SA/ac104828.html","migrSoftwareConceptId":"","releaseFlag":"N","migrOperatingSystem":"","imageGuid":"7281E1D75D664CBFF5DECB3DEB426F1CA07ED989","fileDesc":"","migrRetirementDate":""} >> The file other than the simple text file doesnt get downloaded.Thats the >> issue. i hope that is clear. Thanks, Suprabha On Wed, Sep 19, 2012 at 9:00 >> PM, Ramchandra Apte wrote: > On 19 September 2 >> 012 16:09, suprabha ekka wrote: > > > Hi , > >> > > > I wanted to download a file from a content url . The content of the >> file > is > > pdf/doc/docx/.xls/ any ms supported file. > > The simple text >> file i am able to download but i am unbal eto download > any > > other >> file. > > The snippet of the code is : > > > > import urllib2 > > import >> urllib > > import ClientCookie > > > > import sys > > cj = >> ClientCookie.LWPCookieJar() > > opener = >> ClientCookie.build_opener(urllib2.HTTPSHandler(), > > >> ClientCookie.HTTPCookieProcessor(cj)) > > >> ClientCookie.install_opener(opener) > > # input-type values from the html >> form > > txtdata = > >> {'userid':'****************','password':'**********************'} > > data >> = urllib.urlencode(txtdata) > > > > req3 = >> ClientCookie.Request("**************************8" ,data) > > handle3 = >> ClientCookie.urlopen(req3) > > content=handle3.read() > > print content > > >> > > Can any one tell me while i am able to download the content of simple > >> text > > file but why i am not abl to download the ppt/pdf/ etc file. >> and how > can i > > do it. > > Can anyone respond ASAP. > > > > Thanks in >> advance. > > > > -Suprabha > > >> _______________________________________________ > > BangPypers mailing list >> > > BangPypers at python.org > > >> http://mail.python.org/mailman/listinfo/bangpypers > > > Please elobrate >> on the error (explain in more detail) > >> _______________________________________________ > BangPypers mailing list > >> BangPypers at python.org > >> http://mail.python.org/mailman/listinfo/bangpypers > >> _______________________________________________ BangPypers mailing list >> BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers >> >> >> >> Regards, >> Yoganand >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> > > From brian at python.org Thu Sep 20 23:23:33 2012 From: brian at python.org (Brian Curtin) Date: Thu, 20 Sep 2012 21:23:33 -0000 Subject: [BangPypers] PyCon 2013 Ticket Sales Have Begun! Message-ID: Hi BangPyPers! The PyCon organizers are happy to announce that ticket sales for the March 2013 conference have opened at https://us.pycon.org/2013/registration/ ! Early bird rates are available for the first 1000 purchases, which is a departure from previous time-based systems. With PyCon 2012 having been a quick sell out, we're expecting this one to be the same. Keep in mind that attendance is strictly limited to 2500. PyCon 2013 is going back to Santa Clara, CA before heading up north for two years in Montreal, Quebec for 2014-15. The event starts with two days of tutorials on March 13, followed by three days of talks starting March 15, and ends with four days of sprints starting March 18. Individual and corporate ticket prices remain the same as they have been for the last few years, with early bird rates of $300 and $450 respectively. The regular rates of $350 and $600 for individual and corporate are still an incredible deal. For 2013 we've reduced the cost to students by 50%, bringing the early bird rate to $100 with a regular rate of $125. Providing a more affordable conference experience for students is a priority for the organizers and the Python Software Foundation, and we're hoping the decrease helps bring more of them out. We've also increased our financial aid program, and hope to assist more attendees for PyCon 2013! You can apply for financial aid through the new consolidated form at https://docs.google.com/spreadsheet/viewform?fromEmail=true&formkey=dGt4Z0dsY052VERJem4xUUFVQW9uQVE6MQ We're still accepting proposals for talks and tutorials, with a deadline of September 28. Poster proposals are accepted through January 15, 2013. For more information, see https://us.pycon.org/2013/speaking/cfp/ If your company is interested in sponsorship, we need you. Sponsors are what make PyCon a possibility, and sponsorship offers some great values to the generous organizations who support the conference. Check out https://us.pycon.org/2013/sponsors/whysponsor/ to find out what you get out of sponsorship, with a prospectus at https://us.pycon.org/2013/sponsors/prospectus/. Contact Jesse Noller at jnoller at python.org with any sponsorship inquiries. Keep an eye out for news on our blog at http://pycon.blogspot.com/ and follow us on twitter at https://twitter.com/pycon Jesse Noller, Chairman jnoller at python.org Brian Curtin, Publicity Coordinator brian at python.org From ruchiryshukla at gmail.com Fri Sep 21 07:52:43 2012 From: ruchiryshukla at gmail.com (Ruchir Shukla) Date: Fri, 21 Sep 2012 11:22:43 +0530 Subject: [BangPypers] Need Help for xmlrpclib with ref SgmlopParser in python 2.7 ubuntu 12.04 Message-ID: Hello All There are some strange behavioral i have observed. in ubuntu 12.04 for python2.7 in xmlrpclib.py SgmlopParser is missing . while in python2.6 it is there . what was the main key feature for this Parser and why it is missing ? one feature I know that accelerator . but I am having some problem when I am sending Mail content in the xmlrpc call "ExpatParser" is miss-behaving . while with python2.6 SgmlopParser is parsing it very well . Thank you in advance . -- ---------------------------- Kind regards Ruchir Shukla Phone: +91 9099020687 ruchiryshukla at gmail.com; Ruchir Shukla From yoganand at gmx.com Fri Sep 21 09:19:18 2012 From: yoganand at gmx.com (Yoganand Anandaraju) Date: Fri, 21 Sep 2012 09:19:18 +0200 Subject: [BangPypers] Need Help for xmlrpclib with ref SgmlopParser in python 2.7 ubuntu 12.04 Message-ID: <20120921071918.164740@gmx.com> The sgmlop parser is tolerant, and happily accepts XML-like data that are not well-formed. ----- Original Message ----- From: Ruchir Shukla Sent: 09/21/12 11:22 AM To: Bangalore Python Users Group - India Subject: [BangPypers] Need Help for xmlrpclib with ref SgmlopParser in python 2.7 ubuntu 12.04 Hello All There are some strange behavioral i have observed. in ubuntu 12.04 for python2.7 in xmlrpclib.py SgmlopParser is missing . while in python2.6 it is there . what was the main key feature for this Parser and why it is missing ? one feature I know that accelerator . but I am having some problem when I am sending Mail content in the xmlrpc call "ExpatParser" is miss-behaving . while with python2.6 SgmlopParser is parsing it very well . Thank you in advance . -- ---------------------------- Kind regards Ruchir Shukla Phone: +91 9099020687 ruchiryshukla at gmail.com; Ruchir Shukla _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers Regards, Yoganand From ruchiryshukla at gmail.com Fri Sep 21 09:23:08 2012 From: ruchiryshukla at gmail.com (Ruchir Shukla) Date: Fri, 21 Sep 2012 12:53:08 +0530 Subject: [BangPypers] Need Help for xmlrpclib with ref SgmlopParser in python 2.7 ubuntu 12.04 In-Reply-To: <20120921071918.164740@gmx.com> References: <20120921071918.164740@gmx.com> Message-ID: Hello Yoganand but why in python2.7 in ubuntu 12.04 it has been removed from xmlrpclib ? any idea what is going on ? or what I can do to use sgmlop in python 2.7 ubuntu 12.04 ? On Fri, Sep 21, 2012 at 12:49 PM, Yoganand Anandaraju wrote: > The sgmlop parser is tolerant, and happily accepts XML-like data that are > not well-formed. > > ----- Original Message ----- > From: Ruchir Shukla > Sent: 09/21/12 11:22 AM > To: Bangalore Python Users Group - India > Subject: [BangPypers] Need Help for xmlrpclib with ref SgmlopParser in > python 2.7 ubuntu 12.04 > > Hello All There are some strange behavioral i have observed. in ubuntu > 12.04 for python2.7 in xmlrpclib.py SgmlopParser is missing . while in > python2.6 it is there . what was the main key feature for this Parser and > why it is missing ? one feature I know that accelerator . but I am having > some problem when I am sending Mail content in the xmlrpc call > "ExpatParser" is miss-behaving . while with python2.6 SgmlopParser is > parsing it very well . Thank you in advance . -- > ---------------------------- Kind regards Ruchir Shukla Phone: +91 > 9099020687 ruchiryshukla at gmail.com; Ruchir Shukla < > http://ruchir-shukla.blogspot.com/> > _______________________________________________ BangPypers mailing list > BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers > > > > Regards, > Yoganand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ---------------------------- Kind regards Ruchir Shukla Phone: +91 9099020687 ruchiryshukla at gmail.com; Ruchir Shukla From yoganand at gmx.com Fri Sep 21 09:39:50 2012 From: yoganand at gmx.com (Yoganand Anandaraju) Date: Fri, 21 Sep 2012 09:39:50 +0200 Subject: [BangPypers] Need Help for xmlrpclib with ref SgmlopParser in python 2.7 ubuntu 12.04 Message-ID: <20120921073950.164730@gmx.com> I dont know why it has been removed but the package is maintained by Frederik Lunch and last updated 2004 I believe. You can mail him at fredrik at pythonware.com. If you specifically want sgmlop then you would have to build it from source. But I would not suggest doing that. It would be rather easier to traceback your ExpatParser to see where it is misbehaving and fix it. ----- Original Message ----- From: Ruchir Shukla Sent: 09/21/12 12:53 PM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] Need Help for xmlrpclib with ref SgmlopParser in python 2.7 ubuntu 12.04 Hello Yoganand but why in python2.7 in ubuntu 12.04 it has been removed from xmlrpclib ? any idea what is going on ? or what I can do to use sgmlop in python 2.7 ubuntu 12.04 ? On Fri, Sep 21, 2012 at 12:49 PM, Yoganand Anandaraju wrote: > The sgmlop parser is tolerant, and happily accepts XML-like data that are > not well-formed. > > ----- Original Message ----- > From: Ruchir Shukla > Sent: 09/21/12 11:22 AM > To: Bangalore Python Users Group - India > Subject: [BangPypers] Need Help for xmlrpclib with ref SgmlopParser in > python 2.7 ubuntu 12.04 > > Hello All There are some strange behavioral i have observed. in ubuntu > 12.04 for python2.7 in xmlrpclib.py SgmlopParser is missing . while in > python2.6 it is there . what was the main key feature for this Parser and > why it is missing ? one feature I know that accelerator . but I am having > some problem when I am sending Mail content in the xmlrpc call > "ExpatParser" is miss-behaving . while with python2.6 SgmlopParser is > parsing it very well . Thank you in advance . -- > ---------------------------- Kind regards Ruchir Shukla Phone: +91 > 9099020687 ruchiryshukla at gmail.com; Ruchir Shukla < > http://ruchir-shukla.blogspot.com/> > _______________________________________________ BangPypers mailing list > BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers > > > > Regards, > Yoganand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ---------------------------- Kind regards Ruchir Shukla Phone: +91 9099020687 ruchiryshukla at gmail.com; Ruchir Shukla _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers Regards, Yoganand From ruchiryshukla at gmail.com Fri Sep 21 09:47:18 2012 From: ruchiryshukla at gmail.com (Ruchir Shukla) Date: Fri, 21 Sep 2012 13:17:18 +0530 Subject: [BangPypers] Need Help for xmlrpclib with ref SgmlopParser in python 2.7 ubuntu 12.04 In-Reply-To: <20120921073950.164730@gmx.com> References: <20120921073950.164730@gmx.com> Message-ID: Hello Thank you so much ... http://bugs.python.org/issue5767 becuase of this issue they have remove the parser :( My problem is I am sending Raw Mail from Mail client to the Python XMLRPC API . and raw mail has content invalid documents or content is not well-formed . mail client is sending something like "<user at domain.come>" it is not converting > to the > this can be a problem . right now I have found a solution that I am encoding raw mail in base64 from Mail Client and sending it. this has solve the problem for now. Thank you so much :) On Fri, Sep 21, 2012 at 1:09 PM, Yoganand Anandaraju wrote: > I dont know why it has been removed but the package is maintained by > Frederik Lunch and last updated 2004 I believe. You can mail him at > fredrik at pythonware.com. If you specifically want sgmlop then you would > have to build it from source. But I would not suggest doing that. It would > be rather easier to traceback your ExpatParser to see where it is > misbehaving and fix it. > > ----- Original Message ----- > From: Ruchir Shukla > Sent: 09/21/12 12:53 PM > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] Need Help for xmlrpclib with ref SgmlopParser in > python 2.7 ubuntu 12.04 > > Hello Yoganand but why in python2.7 in ubuntu 12.04 it has been removed > from xmlrpclib ? any idea what is going on ? or what I can do to use sgmlop > in python 2.7 ubuntu 12.04 ? On Fri, Sep 21, 2012 at 12:49 PM, Yoganand > Anandaraju wrote: > The sgmlop parser is tolerant, and > happily accepts XML-like data that are > not well-formed. > > ----- > Original Message ----- > From: Ruchir Shukla > Sent: 09/21/12 11:22 AM > > To: Bangalore Python Users Group - India > Subject: [BangPypers] Need Help > for xmlrpclib with ref SgmlopParser in > python 2.7 ubuntu 12.04 > > Hello > All There are some strange behavioral i have observed. in ubuntu > 12.04 > for python2.7 in xmlrpclib.py SgmlopParser is missing . while in > > python2.6 it is there . what was the main key feature for this Parser and > > why it is missing ? one feature I know that accelerator . but I am having > > some problem when I am sending Mail content in the xmlrpc call > > "ExpatParser" is miss-behaving . while with python2.6 Sg > mlopParser is > parsing it very well . Thank you in advance . -- > > ---------------------------- Kind regards Ruchir Shukla Phone: +91 > > 9099020687 ruchiryshukla at gmail.com; Ruchir Shukla < > > http://ruchir-shukla.blogspot.com/> > > _______________________________________________ BangPypers mailing list > > BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers> > > > Regards, > Yoganand > > _______________________________________________ > BangPypers mailing list > > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers> -- ---------------------------- Kind regards Ruchir Shukla Phone: +91 > 9099020687 ruchiryshukla at gmail.com; Ruchir Shukla < > http://ruchir-shukla.blogspot.com/> > _______________________________________________ BangPypers mailing list > BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers > > > > Regards, > Yoganand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ---------------------------- Kind regards Ruchir Shukla Phone: +91 9099020687 ruchiryshukla at gmail.com; Ruchir Shukla From withblessings at gmail.com Fri Sep 21 10:28:34 2012 From: withblessings at gmail.com (Sriranga(78yrsold)) Date: Fri, 21 Sep 2012 13:58:34 +0530 Subject: [BangPypers] help is requested in connection with Ocropus project(which is pure python built) Message-ID: Hello. I am newbie to python lang. At present I am struggling hard to install ocropus in ubuntu 12.04 from the website http://code.google.com/p/ocropus/. I like to develop ocropus Kannada OCR project for benefit of kannada speaking communities. In this context, any problems of python like trace back etc ,during training the kannada lang if any, can posted here for solution from the python community. Since creator Prof.Tom is German and does not know Kannada lang - as such I am seeking help from python forum. I wanted to install in Winxp(SP3)wherein I have already installed python 2.7. - for which help is solicited. With regards, -sriranga(79yrs) From yoganand at gmx.com Fri Sep 21 12:35:25 2012 From: yoganand at gmx.com (Yoganand Anandaraju) Date: Fri, 21 Sep 2012 12:35:25 +0200 Subject: [BangPypers] help is requested in connection with Ocropus project(which is pure python built) Message-ID: <20120921103525.164770@gmx.com> Can you tell where exactly you are struggling with the install. I would like to be part of the project, let me know on how can I contribute. Regards, Yoganand ----- Original Message ----- From: Sriranga(78yrsold) Sent: 09/21/12 01:58 PM To: bangpypers at python.org Subject: [BangPypers] help is requested in connection with Ocropus project(which is pure python built) Hello. I am newbie to python lang. At present I am struggling hard to install ocropus in ubuntu 12.04 from the website http://code.google.com/p/ocropus/. I like to develop ocropus Kannada OCR project for benefit of kannada speaking communities. In this context, any problems of python like trace back etc ,during training the kannada lang if any, can posted here for solution from the python community. Since creator Prof.Tom is German and does not know Kannada lang - as such I am seeking help from python forum. I wanted to install in Winxp(SP3)wherein I have already installed python 2.7. - for which help is solicited. With regards, -sriranga(79yrs) _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From yoganand at gmx.com Fri Sep 21 13:42:59 2012 From: yoganand at gmx.com (Yoganand Anandaraju) Date: Fri, 21 Sep 2012 13:42:59 +0200 Subject: [BangPypers] help is requested in connection with Ocropus project(which is pure python built) Message-ID: <20120921114259.164760@gmx.com> I manged to successfully install and run the tests after minor changes in the code. I am using Ubuntu 11.10. ----- Original Message ----- From: Yoganand Anandaraju Sent: 09/21/12 04:05 PM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] help is requested in connection with Ocropus project(which is pure python built) Can you tell where exactly you are struggling with the install. I would like to be part of the project, let me know on how can I contribute. Regards, Yoganand ----- Original Message ----- From: Sriranga(78yrsold) Sent: 09/21/12 01:58 PM To: bangpypers at python.org Subject: [BangPypers] help is requested in connection with Ocropus project(which is pure python built) Hello. I am newbie to python lang. At present I am struggling hard to install ocropus in ubuntu 12.04 from the website http://code.google.com/p/ocropus/. I like to develop ocropus Kannada OCR project for benefit of kannada speaking communities. In this context, any problems of python like trace back etc ,during training the kannada lang if any, can posted here for solution from the python community. Since creator Prof.Tom is German and does not know Kannada lang - as such I am seeking help from python forum. I wanted to install in Winxp(SP3)wherein I have already installed python 2.7. - for which help is solicited. With regards, -sriranga(79yrs) _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From maniandram01 at gmail.com Fri Sep 21 14:39:57 2012 From: maniandram01 at gmail.com (Ramchandra Apte) Date: Fri, 21 Sep 2012 18:09:57 +0530 Subject: [BangPypers] help is requested in connection with Ocropus project(which is pure python built) In-Reply-To: <20120921114259.164760@gmx.com> References: <20120921114259.164760@gmx.com> Message-ID: On 21 September 2012 17:12, Yoganand Anandaraju wrote: > I manged to successfully install and run the tests after minor changes in > the code. I am using Ubuntu 11.10. > ----- Original Message ----- > From: Yoganand Anandaraju > Sent: 09/21/12 04:05 PM > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] help is requested in connection with Ocropus > project(which is pure python built) > > Can you tell where exactly you are struggling with the install. I would > like to be part of the project, let me know on how can I contribute. > Regards, Yoganand ----- Original Message ----- From: Sriranga(78yrsold) > Sent: 09/21/12 01:58 PM To: bangpypers at python.org Subject: [BangPypers] > help is requested in connection with Ocropus project(which is pure python > built) Hello. I am newbie to python lang. At present I am struggling hard > to install ocropus in ubuntu 12.04 from the website > http://code.google.com/p/ocropus/. I like to develop ocropus Kannada OCR > project for benefit of kannada speaking communities. In this context, any > problems of python like trace back etc ,during training the kannada lang if > any, can posted here for solution from the python community. Since creator > Prof.Tom is German and does not know Kannada lang - as such I am seeking > help from python forum. I wanted to install in Winxp(SP3)wherein I have > already installed python 2.7. - for which help is solicited. With reg > ards, -sriranga(79yrs) _______________________________________________ > BangPypers mailing list BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers_______________________________________________ BangPypers mailing list > BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > I don't know Kannada but I would love to help with the other stuff. From netwebsteps at gmail.com Sat Sep 22 08:41:31 2012 From: netwebsteps at gmail.com (G.T.RAO) Date: Sat, 22 Sep 2012 12:11:31 +0530 Subject: [BangPypers] [JOB] and [COMMERCIAL] openings python & Twisted developers. In-Reply-To: References: Message-ID: > Greetings all, >> >> >> There is an *Urgent Requirement of python Developer , * 3+ Years, >> Experience in Python, Good experience in using Twisted, Network >> protocols knowledge, Ability to use wireshark and debug. Experience >> in building desktop apps using PySide, PyQt. >> >> Contact : -Lintel Technologies Pvt Ltd., Hydrabad. Hinal >> Prajapati:+919898396969 >> >> -- >> >> >> Regards, >> >> G.T.RAO >> email:netwebsteps at gmail.com >> > www.fossyatra.wordpress.com > mobile:07737031761 >> ??????: ??:????? ?? ???? ????? ????????? ?? ?? ??? ?? ?????? ?? ??? ????? >> ??. ?? ??? adware,?? ??? spyware, ????? ????? ?????????. >> >> >> > > > > > > From deepu.dtp at gmail.com Sat Sep 22 13:22:38 2012 From: deepu.dtp at gmail.com (Deepu Thomas Philip) Date: Sat, 22 Sep 2012 16:52:38 +0530 Subject: [BangPypers] help needed to in Client Cookie module In-Reply-To: References: <20120920064239.164750@gmx.com> Message-ID: Text files are human readable when displaying contents directly Contents of other formats are not human readable which is why you need external readers to view these files. Don't print the pdf or ms files. instead write them to a file. #pdf example f = open('/tmp/123.pdf', 'wb') f.write(handle3.read()) f.close() Then you can use a pdf reader to view the file. If, however, you need to access the pdf contents during runtime, you will need to find python libraries for reading each of the formats you mentioned. Regards, Deepu On Thu, Sep 20, 2012 at 12:32 PM, suprabha ekka wrote: > On Thu, Sep 20, 2012 at 12:31 PM, suprabha ekka >wrote: > > > no i don't get ny errors ....but i get an infinite display of unknown > > characters.....if u execute the code u wud cum to know with the download > > url for pdf. > > > > -suprabha > > > > > > On Thu, Sep 20, 2012 at 12:12 PM, Yoganand Anandaraju >wrote: > > > >> Do you get any errors when downloading the pdf? > >> > >> ----- Original Message ----- > >> From: suprabha ekka > >> Sent: 09/20/12 11:01 AM > >> To: Bangalore Python Users Group - India > >> Subject: Re: [BangPypers] help needed to in Client Cookie module > >> > >> I am providing the complete code .... import urllib2 import urllib > >> import ClientCookie import ClientForm import sys cj = > >> ClientCookie.LWPCookieJar() opener = > >> ClientCookie.build_opener(urllib2.HTTPSHandler(), > >> ClientCookie.HTTPCookieProcessor(cj)) > ClientCookie.install_opener(opener) # > >> input-type values from the html form txtdata = > >> {'userid':'asdcsearch.gen','password':'Asdc1234'} data = > >> urllib.urlencode(txtdata) req3 = ClientCookie.Request(" > >> https://cdx-stage.cisco.com/ecm/view/objectId/090dca388003e67c" ,data) > >> handle3 = ClientCookie.urlopen(req3) content=handle3.read() print > content > >> https://cdx-stage.cisco.com/ecm/view/objectId/090dca388003e67c is a > >> download url ....So when i try downloading the url after providing the > >> authentication i will able to downlaod the content as ita simple text > file. > >> But if it is a pdf or any other file it not able to downlaod the file. > Like > >> take for example :- > >> https://cdx-stage.cisco.com/ecm/view/objectId/090dca388003e726 --> this > >> a doc file. And i am unab > >> le to get the content. But for the download url : > >> https://cdx-stage.cisco.com/ecm/view/objectId/090dca388003e67c --> this > >> is a simple text file. I am able to get the content. The content is > >> > {"fileName":"s3223-ipservicesk9-mz.122-33.SRE4.bin","publishDate":"31-MAY-2011","featSetDesc":"IP > >> SERVICES > >> > SSH","featInd":"Y","migrReleaseVersion":"","migrLifeCycle":"","minDram":"512","advisoryType":"SOFTWARE","featSetDescId":"1242","certificate":undefined,"migrSoftwareType":"","fileSize":"97811932","minFlash":"256","accessLevel":2,"advisoryUrl":" > >> http://www.cisco.com/web/software/DefTracker/280805679/SA/ac104828.html > ","migrSoftwareConceptId":"","releaseFlag":"N","migrOperatingSystem":"","imageGuid":"7281E1D75D664CBFF5DECB3DEB426F1CA07ED989","fileDesc":"","migrRetirementDate":""} > >> The file other than the simple text file doesnt get downloaded.Thats the > >> issue. i hope that is clear. Thanks, Suprabha On Wed, Sep 19, 2012 at > 9:00 > >> PM, Ramchandra Apte wrote: > On 19 September 2 > >> 012 16:09, suprabha ekka wrote: > > > Hi , > > >> > > > I wanted to download a file from a content url . The content of > the > >> file > is > > pdf/doc/docx/.xls/ any ms supported file. > > The simple > text > >> file i am able to download but i am unbal eto download > any > > other > >> file. > > The snippet of the code is : > > > > import urllib2 > > import > >> urllib > > import ClientCookie > > > > import sys > > cj = > >> ClientCookie.LWPCookieJar() > > opener = > >> ClientCookie.build_opener(urllib2.HTTPSHandler(), > > > >> ClientCookie.HTTPCookieProcessor(cj)) > > > >> ClientCookie.install_opener(opener) > > # input-type values from the > html > >> form > > txtdata = > > >> {'userid':'****************','password':'**********************'} > > > data > >> = urllib.urlencode(txtdata) > > > > req3 = > >> ClientCookie.Request("**************************8" ,data) > > handle3 = > >> ClientCookie.urlopen(req3) > > content=handle3.read() > > print content > > > > >> > > Can any one tell me while i am able to download the content of > simple > > >> text > > file but why i am not abl to download the ppt/pdf/ etc file. > >> and how > can i > > do it. > > Can anyone respond ASAP. > > > > Thanks > in > >> advance. > > > > -Suprabha > > > >> _______________________________________________ > > BangPypers mailing > list > >> > > BangPypers at python.org > > > >> http://mail.python.org/mailman/listinfo/bangpypers > > > Please > elobrate > >> on the error (explain in more detail) > > >> _______________________________________________ > BangPypers mailing > list > > >> BangPypers at python.org > > >> http://mail.python.org/mailman/listinfo/bangpypers > > >> _______________________________________________ BangPypers mailing list > >> BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > >> > >> > >> > >> Regards, > >> Yoganand > >> _______________________________________________ > >> BangPypers mailing list > >> BangPypers at python.org > >> http://mail.python.org/mailman/listinfo/bangpypers > >> > > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From srinivasaenergy at gmail.com Mon Sep 24 06:16:49 2012 From: srinivasaenergy at gmail.com (srinivasa rao) Date: Mon, 24 Sep 2012 09:46:49 +0530 Subject: [BangPypers] [JOB] and [COMMERCIAL] openings python & Twisted developers. In-Reply-To: References: Message-ID: Hi I have 4 years into Python/Django and looking in hyderabad company but i am in bangalore please let me know. Thanks & regards Srinivasa On Sat, Sep 22, 2012 at 12:11 PM, G.T.RAO wrote: > > Greetings all, > >> > >> > >> There is an *Urgent Requirement of python Developer , * 3+ Years, > >> Experience in Python, Good experience in using Twisted, Network > >> protocols knowledge, Ability to use wireshark and debug. Experience > >> in building desktop apps using PySide, PyQt. > >> > >> Contact : -Lintel Technologies Pvt Ltd., Hydrabad. Hinal > >> Prajapati:+919898396969 > >> > >> -- > >> > >> > >> Regards, > >> > >> G.T.RAO > >> email:netwebsteps at gmail.com > >> > > www.fossyatra.wordpress.com > > > mobile:07737031761 > >> ??????: ??:????? ?? ???? ????? ????????? ?? ?? ??? ?? ?????? ?? ??? > ????? > >> ??. ?? ??? adware,?? ??? spyware, ????? ????? ?????????. > >> > >> > >> > > > > > > > > > > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > From yoganand at gmx.com Mon Sep 24 07:43:19 2012 From: yoganand at gmx.com (Yoganand Anandaraju) Date: Mon, 24 Sep 2012 07:43:19 +0200 Subject: [BangPypers] [JOB] Openings for Python developers - Senior Positions Message-ID: <20120924054320.164760@gmx.com> Hi All, There are openings for senior python developers in my current organization, Tavant Technologies(http://www.tavant.com) for Bangalore location. Interested developers can send their resumes to pallavi.mishra at tavant.com. Location: Bangalore Job description * Programming in Python * Architect and design business solutions * Lead and build Python competency in Tavant * Interact with clients to understand requirements and help deliver them Skillset required: * Hands-on experience in Python * Web application development environments such as Django/Pylon * Web services protocols such as REST, SOAP * JQuery/similar javascript libraries * Relational databases and SQL * Unix/Linux software development (Mac OS X is a plus) * Excellent oral and written communication Regards, Yoganand From netwebsteps at gmail.com Mon Sep 24 08:53:56 2012 From: netwebsteps at gmail.com (G.T.RAO) Date: Mon, 24 Sep 2012 12:23:56 +0530 Subject: [BangPypers] [JOB] and [COMMERCIAL] openings python & Twisted developers. In-Reply-To: References: Message-ID: Greetings , pl send me ur cv at netwebsteps at gmail.com. Thankx G.T.RAO On Mon, Sep 24, 2012 at 9:46 AM, srinivasa rao wrote: > Hi > I have 4 years into Python/Django and looking in hyderabad company but i am > in bangalore please let me know. > Thanks & regards > Srinivasa > > On Sat, Sep 22, 2012 at 12:11 PM, G.T.RAO wrote: > > > > Greetings all, > > >> > > >> > > >> There is an *Urgent Requirement of python Developer , * 3+ Years, > > >> Experience in Python, Good experience in using Twisted, Network > > >> protocols knowledge, Ability to use wireshark and debug. Experience > > >> in building desktop apps using PySide, PyQt. > > >> > > >> Contact : -Lintel Technologies Pvt Ltd., Hydrabad. Hinal > > >> Prajapati:+919898396969 > > >> > > >> -- > > >> > > >> > > >> Regards, > > >> > > >> G.T.RAO > > >> email:netwebsteps at gmail.com > > >> > > > www.fossyatra.wordpress.com > > > > > mobile:07737031761 > > >> ??????: ??:????? ?? ???? ????? ????????? ?? ?? ??? ?? ?????? ?? ??? > > ????? > > >> ??. ?? ??? adware,?? ??? spyware, ????? ????? ?????????. > > >> > > >> > > >> > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- G.T.RAO AHMEDABAD http://fossyatra.wordpress.com http://paper.li/GTRao/1342070958 http://wiki.softwarefreedomday.org/2012/India/Ahmedabad/fossyatra email:netwebsteps at gmail.com mobile:07737031761 ??????: ??:????? ?? ???? ????? ????????? ?? ?? ??? ?? ?????? ?? ??? ????? ??. ?? ??? adware,?? ??? spyware, ????? ????? ?????????. Linux(?????? ): ????? ??? ????????(???) ??? ????? ???????? ????? ???? ??? ????? ???? ????? ??. ?? ??? ????? , ?? ??? ????????, ????? ????? ????????. From arvindkhadri at gmail.com Thu Sep 27 14:23:14 2012 From: arvindkhadri at gmail.com (Arvind) Date: Thu, 27 Sep 2012 17:53:14 +0530 Subject: [BangPypers] Need Help for xmlrpclib with ref SgmlopParser in python 2.7 ubuntu 12.04 In-Reply-To: References: <20120921073950.164730@gmx.com> Message-ID: <20120927122314.GA18858@servelots.com> On Fri, Sep 21, 2012 at 01:17:18PM +0530, Ruchir Shukla wrote: > My problem is I am sending Raw Mail from Mail client to the Python XMLRPC > API . > > and raw mail has content invalid documents or content is not well-formed . > mail client is sending something like "<user at domain.come>" > it is not converting > to the > this can be a problem . > Ruchir, have you looked at lxml[0]], that is a very good parser and probably can help you in the sanitizing your XML. [0]http://lxml.de From ruchiryshukla at gmail.com Thu Sep 27 19:18:48 2012 From: ruchiryshukla at gmail.com (Ruchir Shukla) Date: Thu, 27 Sep 2012 22:48:48 +0530 Subject: [BangPypers] Need Help for xmlrpclib with ref SgmlopParser in python 2.7 ubuntu 12.04 In-Reply-To: <20120927122314.GA18858@servelots.com> References: <20120921073950.164730@gmx.com> <20120927122314.GA18858@servelots.com> Message-ID: Hello Arvind Thank you , but I am not using any parser unfortunatly it is not in my hand, XMLRPCLIB is Using parser and I am having problem when Raw email is Send from java xmlrpc to python xmlrpc. :( Or Please let me know if there is an any way to change default XMLRPCLIB behaviour . On Thu, Sep 27, 2012 at 5:53 PM, Arvind wrote: > On Fri, Sep 21, 2012 at 01:17:18PM +0530, Ruchir Shukla wrote: > > My problem is I am sending Raw Mail from Mail client to the Python XMLRPC > > API . > > > > and raw mail has content invalid documents or content is not well-formed > . > > mail client is sending something like "<user at domain.come>" > > it is not converting > to the > this can be a problem . > > > Ruchir, have you looked at lxml[0]], that is a very good parser and > probably can help you in the sanitizing your XML. > [0]http://lxml.de > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- ---------------------------- Kind regards Ruchir Shukla Phone: +91 9099020687 ruchiryshukla at gmail.com; Ruchir Shukla