From bosanquetrossen at gmail.com Wed Mar 5 17:24:53 2008 From: bosanquetrossen at gmail.com (bosanquetrossen at gmail.com) Date: Wed, 5 Mar 2008 21:54:53 +0530 Subject: [BangPypers] [job] Django web developer Message-ID: Hello. I'm looking to hire an experienced developer to help get a Django web application to work in IE6 and IE7 - its current feature-set works in FireFox. This will be a good opportunity to learn and work with Django - if you're interested or know someone who might be, please contact bosanquetrossen at gmail.com Thanks, --Justin From gnuyoga at gmail.com Fri Mar 7 07:04:02 2008 From: gnuyoga at gmail.com (gnuyoga) Date: Fri, 07 Mar 2008 11:34:02 +0530 Subject: [BangPypers] Idea In-Reply-To: References: Message-ID: <47D0DAD2.60703@gmail.com> hi folks, Of late we are seeing a lot of job posting in this group. Just thinking about a wiki page where all the job posting can be consolidated. For this a template can be created. what u guys say about this. Template should be able to capture minimal information like, Job Description: company: URL: Ur Designation: Email ID: what say ? note sure if we have a wiki page for bangpypers !!! - sree -- http://picasaweb.google.com/gnuyoga Each soul is potentially divine. The goal is to manifest the divine by controlling nature, internal or external. Do this by work or worship or psychic control or philosophy by one or more, or all of these and be free. From ashim at stoke.com Fri Mar 7 09:32:54 2008 From: ashim at stoke.com (Ashim Roy) Date: Fri, 7 Mar 2008 00:32:54 -0800 Subject: [BangPypers] Idea In-Reply-To: <47D0DAD2.60703@gmail.com> Message-ID: <23EECEC9B06584478B1C9E38C253D35FF230FF@minsk.us.stoke.com> Sree, That's a great idea. How would we make the wiki info viral so that many people see it? Regards, Ashim -----Original Message----- From: bangpypers-bounces at python.org [mailto:bangpypers-bounces at python.org] On Behalf Of gnuyoga Sent: Friday, March 07, 2008 11:34 AM To: Bangalore Python Users Group - India Subject: [BangPypers] Idea hi folks, Of late we are seeing a lot of job posting in this group. Just thinking about a wiki page where all the job posting can be consolidated. For this a template can be created. what u guys say about this. Template should be able to capture minimal information like, Job Description: company: URL: Ur Designation: Email ID: what say ? note sure if we have a wiki page for bangpypers !!! - sree -- http://picasaweb.google.com/gnuyoga Each soul is potentially divine. The goal is to manifest the divine by controlling nature, internal or external. Do this by work or worship or psychic control or philosophy by one or more, or all of these and be free. _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From dorai at thodla.com Fri Mar 7 09:45:18 2008 From: dorai at thodla.com (Dorai Thodla) Date: Fri, 7 Mar 2008 14:15:18 +0530 Subject: [BangPypers] Idea In-Reply-To: <23EECEC9B06584478B1C9E38C253D35FF230FF@minsk.us.stoke.com> References: <47D0DAD2.60703@gmail.com> <23EECEC9B06584478B1C9E38C253D35FF230FF@minsk.us.stoke.com> Message-ID: <603b7e560803070045w5216ced6nfa099c960ec025b7@mail.gmail.com> We can set it up and talk about it in various forums. The first thought that came to my mind when I read the post from Sree was "WikiJobs". I went and checked. Guess what? http://www.wikijobs.in/ But a more surprising thing was this: http://wikijobs.com/ Anyway, going back to the original idea, I think it is great and we should definitely do it. We can use pbwiki or any of the other free wikis out there. Dorai www.thodla.com On Fri, Mar 7, 2008 at 2:02 PM, Ashim Roy wrote: > Sree, > > That's a great idea. How would we make the wiki info viral so that many > people see it? > > Regards, > > Ashim > > -----Original Message----- > From: bangpypers-bounces at python.org > [mailto:bangpypers-bounces at python.org] On Behalf Of gnuyoga > Sent: Friday, March 07, 2008 11:34 AM > To: Bangalore Python Users Group - India > Subject: [BangPypers] Idea > > hi folks, > > Of late we are seeing a lot of job posting in this group. Just thinking > about a wiki page where all the job posting can be consolidated. For > this a template can be created. what u guys say about this. > > Template should be able to capture minimal information like, > > Job Description: > company: > URL: > Ur Designation: > Email ID: > > > what say ? > > note sure if we have a wiki page for bangpypers !!! > > - sree > > -- > http://picasaweb.google.com/gnuyoga > > Each soul is potentially divine. The goal is to manifest the divine by > controlling nature, internal or external. Do this by work or worship or > psychic control or philosophy by one or more, or all of these and be > free. > > _______________________________________________ > 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 > -- Dorai Thodla (http://www.thodla.com) US: 650-206-2688 India: 98408 89258 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080307/889e5061/attachment.htm From gnuyoga at gmail.com Fri Mar 7 10:56:15 2008 From: gnuyoga at gmail.com (gnuyoga) Date: Fri, 07 Mar 2008 15:26:15 +0530 Subject: [BangPypers] Idea In-Reply-To: <603b7e560803070045w5216ced6nfa099c960ec025b7@mail.gmail.com> References: <47D0DAD2.60703@gmail.com> <23EECEC9B06584478B1C9E38C253D35FF230FF@minsk.us.stoke.com> <603b7e560803070045w5216ced6nfa099c960ec025b7@mail.gmail.com> Message-ID: <47D1113F.50001@gmail.com> Dorai Thodla wrote: > We can set it up and talk about it in various forums. The first thought that came to my mind when I read the post from Sree was "WikiJobs". I went and checked. Guess what? > > http://www.wikijobs.in/ interesting !!!! it will be fantastic if we have www.python.org/jobs/india/ or something equivalent to this ...... - sree -- http://picasaweb.google.com/gnuyoga Each soul is potentially divine. The goal is to manifest the divine by controlling nature, internal or external. Do this by work or worship or psychic control or philosophy by one or more, or all of these and be free. From gnuyoga at gmail.com Fri Mar 7 11:03:53 2008 From: gnuyoga at gmail.com (gnuyoga) Date: Fri, 07 Mar 2008 15:33:53 +0530 Subject: [BangPypers] Idea In-Reply-To: <23EECEC9B06584478B1C9E38C253D35FF230FF@minsk.us.stoke.com> References: <23EECEC9B06584478B1C9E38C253D35FF230FF@minsk.us.stoke.com> Message-ID: <47D11309.3080504@gmail.com> Ashim Roy wrote: > Sree, > > That's a great idea. How would we make the wiki info viral so that many > people see it? > > Regards, > > Ashim how about this ???? people can continue to post jobs in mailing list, but should add a wiki reference .... the idea is at any given point of time we should have a wiki page with all the job posting added to it !!! - sree -- http://picasaweb.google.com/gnuyoga Each soul is potentially divine. The goal is to manifest the divine by controlling nature, internal or external. Do this by work or worship or psychic control or philosophy by one or more, or all of these and be free. From gnuyoga at gmail.com Fri Mar 7 10:59:07 2008 From: gnuyoga at gmail.com (gnuyoga) Date: Fri, 07 Mar 2008 15:29:07 +0530 Subject: [BangPypers] Idea In-Reply-To: <23EECEC9B06584478B1C9E38C253D35FF230FF@minsk.us.stoke.com> References: <23EECEC9B06584478B1C9E38C253D35FF230FF@minsk.us.stoke.com> Message-ID: <47D111EB.6070709@gmail.com> Ashim Roy wrote: > Sree, > > That's a great idea. How would we make the wiki info viral so that many > people see it? > > Regards, > > Ashim how about this ???? people can continue to post jobs in mailing list, but should a wiki reference .... the idea is at any given point of time we should have a wiki page with all the job posting added to it !!! - sree -- http://picasaweb.google.com/gnuyoga Each soul is potentially divine. The goal is to manifest the divine by controlling nature, internal or external. Do this by work or worship or psychic control or philosophy by one or more, or all of these and be free. From abpillai at gmail.com Fri Mar 7 11:48:58 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 7 Mar 2008 16:18:58 +0530 Subject: [BangPypers] Idea In-Reply-To: <47D111EB.6070709@gmail.com> References: <23EECEC9B06584478B1C9E38C253D35FF230FF@minsk.us.stoke.com> <47D111EB.6070709@gmail.com> Message-ID: <8548c5f30803070248v60fb3a63t58ae4d5e00a5850b@mail.gmail.com> Not a bad idea, but a fundamental problem with Job wiki is that job information is transient. It does not hold good forever. Public wikis are more suited to information which is constant and does not change or age (time out). Which is why Wikis are successful in storing and sharing knowledge (wikipedia!). They can be used for storing and sharing transient information also, but with appropriate safeguards. For example, in this case a time-stamp of the job posting should be mandatory. The good thing about a mailing list is that an email provides the timestamp automatically (same for a blog post), but that is not the case for most wikis, unless you try and look up the metadata regarding the edits. --Anand On Fri, Mar 7, 2008 at 3:29 PM, gnuyoga wrote: > Ashim Roy wrote: > > Sree, > > > > That's a great idea. How would we make the wiki info viral so that many > > people see it? > > > > Regards, > > > > Ashim > > how about this ???? > > people can continue to post jobs in mailing list, but should a wiki > > reference .... > > the idea is at any given point of time we should have a wiki page with > all the job posting added to it !!! > > > > - sree > > -- > http://picasaweb.google.com/gnuyoga > > Each soul is potentially divine. The goal is to manifest the divine by controlling nature, internal or external. Do this by work or worship or psychic control or philosophy by one or more, or all of these and be free. > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -Anand From abpillai at gmail.com Fri Mar 7 11:56:33 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 7 Mar 2008 16:26:33 +0530 Subject: [BangPypers] Idea In-Reply-To: <8548c5f30803070248v60fb3a63t58ae4d5e00a5850b@mail.gmail.com> References: <23EECEC9B06584478B1C9E38C253D35FF230FF@minsk.us.stoke.com> <47D111EB.6070709@gmail.com> <8548c5f30803070248v60fb3a63t58ae4d5e00a5850b@mail.gmail.com> Message-ID: <8548c5f30803070256u770776cdgeea3490b4c68de7f@mail.gmail.com> Secondly, wikis by definition allow editing by anyone. So how do you protect a job posting against wilful malicious edits ? What if I post for a Job which mentions Python experience and then someone comes and edits "Python" to say "Ruby" ? Then the posting is violated and no longer valid. Do I go back and change it ? Or do I lock the post against edits ? Then one does not need a Wiki anyway. I fail to get the basic inspiring reason behind a Job wiki and how it is useful apart from the common reason "wikis are cool" :) To me it looks like a Job wiki has inherent issues. Wiki + job posting does not go hand in hand. --Anand On Fri, Mar 7, 2008 at 4:18 PM, Anand Balachandran Pillai wrote: > Not a bad idea, but a fundamental problem with Job wiki is that job > information is transient. It does not hold good forever. Public wikis > are more suited to information which is constant and does not > change or age (time out). Which is why Wikis are successful in > storing and sharing knowledge (wikipedia!). They can be used > for storing and sharing transient information also, but with appropriate > safeguards. For example, in this case a time-stamp of the job > posting should be mandatory. The good thing about a mailing list > is that an email provides the timestamp automatically (same for > a blog post), but that is not the case for most wikis, unless you > try and look up the metadata regarding the edits. > > --Anand > > > > On Fri, Mar 7, 2008 at 3:29 PM, gnuyoga wrote: > > Ashim Roy wrote: > > > Sree, > > > > > > That's a great idea. How would we make the wiki info viral so that many > > > people see it? > > > > > > Regards, > > > > > > Ashim > > > > how about this ???? > > > > people can continue to post jobs in mailing list, but should a wiki > > > > reference .... > > > > the idea is at any given point of time we should have a wiki page with > > all the job posting added to it !!! > > > > > > > > - sree > > > > -- > > http://picasaweb.google.com/gnuyoga > > > > Each soul is potentially divine. The goal is to manifest the divine by controlling nature, internal or external. Do this by work or worship or psychic control or philosophy by one or more, or all of these and be free. > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > -Anand > -- -Anand From gnuyoga at gmail.com Fri Mar 7 12:03:10 2008 From: gnuyoga at gmail.com (=?UTF-8?Q?(=E0=A4=B6=E0=A5=8D=E0=A4=B0=E0=A5=80)_GNU_Yoga?=) Date: Fri, 7 Mar 2008 16:33:10 +0530 Subject: [BangPypers] Idea In-Reply-To: <8548c5f30803070256u770776cdgeea3490b4c68de7f@mail.gmail.com> References: <23EECEC9B06584478B1C9E38C253D35FF230FF@minsk.us.stoke.com> <47D111EB.6070709@gmail.com> <8548c5f30803070248v60fb3a63t58ae4d5e00a5850b@mail.gmail.com> <8548c5f30803070256u770776cdgeea3490b4c68de7f@mail.gmail.com> Message-ID: On 3/7/08, Anand Balachandran Pillai wrote: > Secondly, wikis by definition allow editing by anyone. So how > do you protect a job posting against wilful malicious edits ? > What if I post for a Job which mentions Python experience > and then someone comes and edits "Python" to say "Ruby" ? > Then the posting is violated and no longer valid. > > Do I go back and change it ? Or do I lock the post against > edits ? Then one does not need a Wiki anyway. > > I fail to get the basic inspiring reason behind a Job wiki and > how it is useful apart from the common reason "wikis are cool" :) > To me it looks like a Job wiki has inherent issues. Wiki + > job posting does not go hand in hand. > > --Anand let rephrase .... instead of wiki ..... a page which can do the job posting with the features mentioned above ..... any python rapid application developers listeninig ??? - sree From bugsy.seigel at gmail.com Fri Mar 7 12:10:51 2008 From: bugsy.seigel at gmail.com (Harish Krishnan) Date: Fri, 7 Mar 2008 16:40:51 +0530 Subject: [BangPypers] Idea In-Reply-To: References: <23EECEC9B06584478B1C9E38C253D35FF230FF@minsk.us.stoke.com> <47D111EB.6070709@gmail.com> <8548c5f30803070248v60fb3a63t58ae4d5e00a5850b@mail.gmail.com> <8548c5f30803070256u770776cdgeea3490b4c68de7f@mail.gmail.com> Message-ID: A blog post which an admin can approve might do the "job". Harish On 07-Mar-08, at 4:33 PM, (????) GNU Yoga wrote: > On 3/7/08, Anand Balachandran Pillai wrote: >> Secondly, wikis by definition allow editing by anyone. So how >> do you protect a job posting against wilful malicious edits ? >> What if I post for a Job which mentions Python experience >> and then someone comes and edits "Python" to say "Ruby" ? >> Then the posting is violated and no longer valid. >> >> Do I go back and change it ? Or do I lock the post against >> edits ? Then one does not need a Wiki anyway. >> >> I fail to get the basic inspiring reason behind a Job wiki and >> how it is useful apart from the common reason "wikis are cool" :) >> To me it looks like a Job wiki has inherent issues. Wiki + >> job posting does not go hand in hand. >> >> --Anand > > > let rephrase .... instead of wiki ..... a page which can do the job > posting with the features mentioned above ..... any python rapid > application developers listeninig ??? > > - sree > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers From abpillai at gmail.com Fri Mar 7 12:27:14 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 7 Mar 2008 16:57:14 +0530 Subject: [BangPypers] Idea In-Reply-To: References: <23EECEC9B06584478B1C9E38C253D35FF230FF@minsk.us.stoke.com> <47D111EB.6070709@gmail.com> <8548c5f30803070248v60fb3a63t58ae4d5e00a5850b@mail.gmail.com> <8548c5f30803070256u770776cdgeea3490b4c68de7f@mail.gmail.com> Message-ID: <8548c5f30803070327o79c7f9ddtcf6cc44b66dae451@mail.gmail.com> I can provide 2 quick solutions. 1. Automate blog posting backend when a mail which seems to mention a new job posting is posted. This can be done bye requiring specific keyword(s) in the subject for job postings such as [JOB]. I am not sure, but mailman might allow such customizations in the backend. 2. An incremental crawler (always!) which monitors the group for postings and automatically fetches JOB posting posts (similar approach, use keywords or naive bayesian classification!) and post it to a specific blog. --Anand On Fri, Mar 7, 2008 at 4:40 PM, Harish Krishnan wrote: > A blog post which an admin can approve might do the "job". > > Harish > > > > On 07-Mar-08, at 4:33 PM, (????) GNU Yoga wrote: > > > On 3/7/08, Anand Balachandran Pillai wrote: > >> Secondly, wikis by definition allow editing by anyone. So how > >> do you protect a job posting against wilful malicious edits ? > >> What if I post for a Job which mentions Python experience > >> and then someone comes and edits "Python" to say "Ruby" ? > >> Then the posting is violated and no longer valid. > >> > >> Do I go back and change it ? Or do I lock the post against > >> edits ? Then one does not need a Wiki anyway. > >> > >> I fail to get the basic inspiring reason behind a Job wiki and > >> how it is useful apart from the common reason "wikis are cool" :) > >> To me it looks like a Job wiki has inherent issues. Wiki + > >> job posting does not go hand in hand. > >> > >> --Anand > > > > > > let rephrase .... instead of wiki ..... a page which can do the job > > posting with the features mentioned above ..... any python rapid > > application developers listeninig ??? > > > > - sree > > _______________________________________________ > > 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 > -- -Anand From abpillai at gmail.com Fri Mar 7 12:27:42 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 7 Mar 2008 16:57:42 +0530 Subject: [BangPypers] Idea In-Reply-To: <8548c5f30803070327o79c7f9ddtcf6cc44b66dae451@mail.gmail.com> References: <23EECEC9B06584478B1C9E38C253D35FF230FF@minsk.us.stoke.com> <47D111EB.6070709@gmail.com> <8548c5f30803070248v60fb3a63t58ae4d5e00a5850b@mail.gmail.com> <8548c5f30803070256u770776cdgeea3490b4c68de7f@mail.gmail.com> <8548c5f30803070327o79c7f9ddtcf6cc44b66dae451@mail.gmail.com> Message-ID: <8548c5f30803070327i6d6be0d3nc0ea1bf88f5b4ca@mail.gmail.com> Read "provide" as "suggest" :) --Anand On Fri, Mar 7, 2008 at 4:57 PM, Anand Balachandran Pillai wrote: > I can provide 2 quick solutions. > > 1. Automate blog posting backend when a mail which seems to mention a new > job posting is posted. This can be done bye requiring specific keyword(s) in > the subject for job postings such as [JOB]. I am not sure, but mailman might > allow such customizations in the backend. > > 2. An incremental crawler (always!) which monitors the group for postings and > automatically fetches JOB posting posts (similar approach, use keywords or > naive bayesian classification!) and post it to a specific blog. > > --Anand > > > > On Fri, Mar 7, 2008 at 4:40 PM, Harish Krishnan wrote: > > A blog post which an admin can approve might do the "job". > > > > Harish > > > > > > > > On 07-Mar-08, at 4:33 PM, (????) GNU Yoga wrote: > > > > > On 3/7/08, Anand Balachandran Pillai wrote: > > >> Secondly, wikis by definition allow editing by anyone. So how > > >> do you protect a job posting against wilful malicious edits ? > > >> What if I post for a Job which mentions Python experience > > >> and then someone comes and edits "Python" to say "Ruby" ? > > >> Then the posting is violated and no longer valid. > > >> > > >> Do I go back and change it ? Or do I lock the post against > > >> edits ? Then one does not need a Wiki anyway. > > >> > > >> I fail to get the basic inspiring reason behind a Job wiki and > > >> how it is useful apart from the common reason "wikis are cool" :) > > >> To me it looks like a Job wiki has inherent issues. Wiki + > > >> job posting does not go hand in hand. > > >> > > >> --Anand > > > > > > > > > let rephrase .... instead of wiki ..... a page which can do the job > > > posting with the features mentioned above ..... any python rapid > > > application developers listeninig ??? > > > > > > - sree > > > _______________________________________________ > > > 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 > > > > > > -- > -Anand > -- -Anand From bugsy.seigel at gmail.com Fri Mar 7 13:35:07 2008 From: bugsy.seigel at gmail.com (Harish Krishnan) Date: Fri, 7 Mar 2008 18:05:07 +0530 Subject: [BangPypers] Idea In-Reply-To: <8548c5f30803070327i6d6be0d3nc0ea1bf88f5b4ca@mail.gmail.com> References: <23EECEC9B06584478B1C9E38C253D35FF230FF@minsk.us.stoke.com> <47D111EB.6070709@gmail.com> <8548c5f30803070248v60fb3a63t58ae4d5e00a5850b@mail.gmail.com> <8548c5f30803070256u770776cdgeea3490b4c68de7f@mail.gmail.com> <8548c5f30803070327o79c7f9ddtcf6cc44b66dae451@mail.gmail.com> <8548c5f30803070327i6d6be0d3nc0ea1bf88f5b4ca@mail.gmail.com> Message-ID: On 07-Mar-08, at 4:57 PM, Anand Balachandran Pillai wrote: >> >> >> 1. Automate blog posting backend when a mail which seems to >> mention a new >> job posting is posted. This can be done bye requiring specific >> keyword(s) in >> the subject for job postings such as [JOB]. I am not sure, but >> mailman might >> allow such customizations in the backend. >> Sounds like a nice idea. It would also be good if we have a policy for not posting jobs directly on the mailing list else it will lead to duplication. >> 2. An incremental crawler (always!) which monitors the group for >> postings and >> automatically fetches JOB posting posts (similar approach, use >> keywords or >> naive bayesian classification!) and post it to a specific blog. >> >> This is even better. what does it take for this to work? Harish -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080307/8eb71ed5/attachment.htm From abpillai at gmail.com Fri Mar 7 14:00:45 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 7 Mar 2008 18:30:45 +0530 Subject: [BangPypers] Idea In-Reply-To: References: <23EECEC9B06584478B1C9E38C253D35FF230FF@minsk.us.stoke.com> <47D111EB.6070709@gmail.com> <8548c5f30803070248v60fb3a63t58ae4d5e00a5850b@mail.gmail.com> <8548c5f30803070256u770776cdgeea3490b4c68de7f@mail.gmail.com> <8548c5f30803070327o79c7f9ddtcf6cc44b66dae451@mail.gmail.com> <8548c5f30803070327i6d6be0d3nc0ea1bf88f5b4ca@mail.gmail.com> Message-ID: <8548c5f30803070500s3ec48a63l65aa8d66c73fe59b@mail.gmail.com> On Fri, Mar 7, 2008 at 6:05 PM, Harish Krishnan wrote: > > > On 07-Mar-08, at 4:57 PM, Anand Balachandran Pillai wrote: > > > 1. Automate blog posting backend when a mail which seems to mention a new > job posting is posted. This can be done bye requiring specific keyword(s) > in > the subject for job postings such as [JOB]. I am not sure, but mailman > might > allow such customizations in the backend. > > Sounds like a nice idea. It would also be good if we have a policy for not > posting jobs directly on the mailing list else it will lead to duplication. > > > > 2. An incremental crawler (always!) which monitors the group for postings > and > automatically fetches JOB posting posts (similar approach, use keywords or > naive bayesian classification!) and post it to a specific blog. > > > > This is even better. what does it take for this to work? > Nothing much. Just give me half a day to create a custom crawler for this on top of HarvestMan :) > Harish > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- -Anand From abpillai at gmail.com Fri Mar 7 14:02:45 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 7 Mar 2008 18:32:45 +0530 Subject: [BangPypers] Idea In-Reply-To: <8548c5f30803070500s3ec48a63l65aa8d66c73fe59b@mail.gmail.com> References: <23EECEC9B06584478B1C9E38C253D35FF230FF@minsk.us.stoke.com> <47D111EB.6070709@gmail.com> <8548c5f30803070248v60fb3a63t58ae4d5e00a5850b@mail.gmail.com> <8548c5f30803070256u770776cdgeea3490b4c68de7f@mail.gmail.com> <8548c5f30803070327o79c7f9ddtcf6cc44b66dae451@mail.gmail.com> <8548c5f30803070327i6d6be0d3nc0ea1bf88f5b4ca@mail.gmail.com> <8548c5f30803070500s3ec48a63l65aa8d66c73fe59b@mail.gmail.com> Message-ID: <8548c5f30803070502r1b69ecbei524f970908ef21a1@mail.gmail.com> On Fri, Mar 7, 2008 at 6:30 PM, Anand Balachandran Pillai wrote: > > On Fri, Mar 7, 2008 at 6:05 PM, Harish Krishnan wrote: > > > > > > On 07-Mar-08, at 4:57 PM, Anand Balachandran Pillai wrote: > > > > > > 1. Automate blog posting backend when a mail which seems to mention a new > > job posting is posted. This can be done bye requiring specific keyword(s) > > in > > the subject for job postings such as [JOB]. I am not sure, but mailman > > might > > allow such customizations in the backend. > > > > Sounds like a nice idea. It would also be good if we have a policy for not > > posting jobs directly on the mailing list else it will lead to duplication. > > > > > > > > 2. An incremental crawler (always!) which monitors the group for postings > > and > > automatically fetches JOB posting posts (similar approach, use keywords or > > naive bayesian classification!) and post it to a specific blog. > > > > > > > > This is even better. what does it take for this to work? > > > > Nothing much. Just give me half a day to create a custom crawler for this > on top of HarvestMan :) Ok, this is not posturing :) If someone can register an appropriate blog and send me the URL and the auth credentials I will create the "job posting crawler". Only that someone has to bear the responsibility of running it on a frequent basis. gnuyoga, can you do this ? It would be a nice exercise to write a custom crawler for this... > > > Harish > > > > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > -- > -Anand > Thanks -- -Anand From abpillai at gmail.com Fri Mar 7 17:28:11 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 7 Mar 2008 21:58:11 +0530 Subject: [BangPypers] Idea In-Reply-To: <8548c5f30803070502r1b69ecbei524f970908ef21a1@mail.gmail.com> References: <23EECEC9B06584478B1C9E38C253D35FF230FF@minsk.us.stoke.com> <8548c5f30803070248v60fb3a63t58ae4d5e00a5850b@mail.gmail.com> <8548c5f30803070256u770776cdgeea3490b4c68de7f@mail.gmail.com> <8548c5f30803070327o79c7f9ddtcf6cc44b66dae451@mail.gmail.com> <8548c5f30803070327i6d6be0d3nc0ea1bf88f5b4ca@mail.gmail.com> <8548c5f30803070500s3ec48a63l65aa8d66c73fe59b@mail.gmail.com> <8548c5f30803070502r1b69ecbei524f970908ef21a1@mail.gmail.com> Message-ID: <8548c5f30803070828p6987bc98i85d2de2fb47fc14d@mail.gmail.com> I actually went ahead and did this today. I registered a new blog at http://pythonjobs.blogspot.com . It took me roughly 3 hours to write a custom crawler using HarvestMan to crawl monthly archives of bangpypers and post Jobs automatically to blogger. It uses the Google blogger API in gdata-python-client library. http://code.google.com/p/gdata-python-client/ If someone wants to see the code of the custom crawler it is available in the HarvestMan-2.0 trunk. http://svn.eiao.net/robacc/experimental/HarvestMan-2.0/harvestman/apps/postingcrawler.py I wrote a custom blogger module by using sample code from the google blogger API. Since it contains google's code, I have not checked it into the subversion trunk. If someone wants the code, let me know. To make sure your jobs are in the Blog, just ensure that you make your job posts with [JOB] in the title. That is all the crawler looks for. Regards, --Anand On Fri, Mar 7, 2008 at 6:32 PM, Anand Balachandran Pillai wrote: > On Fri, Mar 7, 2008 at 6:30 PM, Anand Balachandran Pillai > wrote: > > > > On Fri, Mar 7, 2008 at 6:05 PM, Harish Krishnan wrote: > > > > > > > > > On 07-Mar-08, at 4:57 PM, Anand Balachandran Pillai wrote: > > > > > > > > > 1. Automate blog posting backend when a mail which seems to mention a new > > > job posting is posted. This can be done bye requiring specific keyword(s) > > > in > > > the subject for job postings such as [JOB]. I am not sure, but mailman > > > might > > > allow such customizations in the backend. > > > > > > Sounds like a nice idea. It would also be good if we have a policy for not > > > posting jobs directly on the mailing list else it will lead to duplication. > > > > > > > > > > > > 2. An incremental crawler (always!) which monitors the group for postings > > > and > > > automatically fetches JOB posting posts (similar approach, use keywords or > > > naive bayesian classification!) and post it to a specific blog. > > > > > > > > > > > > This is even better. what does it take for this to work? > > > > > > > Nothing much. Just give me half a day to create a custom crawler for this > > on top of HarvestMan :) > Ok, this is not posturing :) If someone can register an appropriate blog and > send me the URL and the auth credentials I will create the "job > posting crawler". > Only that someone has to bear the responsibility of running it on > a frequent basis. > > gnuyoga, can you do this ? It would be a nice exercise to write a custom > crawler for this... > > > > > > Harish > > > > > > > > > > > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > > > > -- > > -Anand > > > > Thanks > > -- > -Anand > -- -Anand From ashok at parliaments.info Fri Mar 7 11:52:31 2008 From: ashok at parliaments.info (Ashok Hariharan) Date: Fri, 7 Mar 2008 13:52:31 +0300 Subject: [BangPypers] Interested parties for Zope3 based Project Message-ID: Hello there: I am a consultant with UN/DESA a United Nations organization involved in building a Parliamentary Information System on the Zope3 platform. We are shortly publishing a Terms-of-Reference for a contract of development of a part of the application. Companies / consultants interested in bidding for this work may contact me offlist, thanks Ashok Hariharan From lawgon at au-kbc.org Sat Mar 8 01:10:55 2008 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Sat, 8 Mar 2008 05:40:55 +0530 Subject: [BangPypers] Interested parties for Zope3 based Project In-Reply-To: References: Message-ID: <9264E674-7C02-49AC-B3F3-26529C25D00A@au-kbc.org> please repost this with the word [JOB] in the subject line - please note that this is a requirement for all job postings on this list On 07-Mar-08, at 4:22 PM, Ashok Hariharan wrote: > Hello there: > > I am a consultant with UN/DESA a United Nations organization involved > in building a > Parliamentary Information System on the Zope3 platform. > > We are shortly publishing a Terms-of-Reference for a contract of > development of a part > of the application. Companies / consultants interested in bidding for > this work may contact > me offlist, > > thanks > > Ashok Hariharan > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers -- regards Kenneth Gonsalves Associate, NRC-FOSS lawgon at au-kbc.org http://nrcfosshelpline.in/web/ Foss conference for the common man: http://registration.fossconf.in/web/ From dorai at thodla.com Sat Mar 8 03:07:43 2008 From: dorai at thodla.com (Dorai Thodla) Date: Sat, 8 Mar 2008 07:37:43 +0530 Subject: [BangPypers] Idea In-Reply-To: <8548c5f30803070828p6987bc98i85d2de2fb47fc14d@mail.gmail.com> References: <23EECEC9B06584478B1C9E38C253D35FF230FF@minsk.us.stoke.com> <8548c5f30803070256u770776cdgeea3490b4c68de7f@mail.gmail.com> <8548c5f30803070327o79c7f9ddtcf6cc44b66dae451@mail.gmail.com> <8548c5f30803070327i6d6be0d3nc0ea1bf88f5b4ca@mail.gmail.com> <8548c5f30803070500s3ec48a63l65aa8d66c73fe59b@mail.gmail.com> <8548c5f30803070502r1b69ecbei524f970908ef21a1@mail.gmail.com> <8548c5f30803070828p6987bc98i85d2de2fb47fc14d@mail.gmail.com> Message-ID: <603b7e560803071807p5c87b337w9690e105dd006e9c@mail.gmail.com> Awesome. Great going. I also read the interview on Spike Developer Zone. Dorai On Fri, Mar 7, 2008 at 9:58 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > I actually went ahead and did this today. I registered a new blog > at http://pythonjobs.blogspot.com . It took me roughly 3 hours to > write a custom crawler using HarvestMan to crawl monthly archives > of bangpypers and post Jobs automatically to blogger. It uses > the Google blogger API in gdata-python-client library. > > http://code.google.com/p/gdata-python-client/ > > If someone wants to see the code of the custom crawler > it is available in the HarvestMan-2.0 trunk. > > > http://svn.eiao.net/robacc/experimental/HarvestMan-2.0/harvestman/apps/postingcrawler.py > > I wrote a custom blogger module by using sample code from the google > blogger > API. Since it contains google's code, I have not checked it into the > subversion trunk. > If someone wants the code, let me know. > > To make sure your jobs are in the Blog, just ensure that you make your > job posts with [JOB] in the title. That is all the crawler looks for. > > Regards, > --Anand > > > On Fri, Mar 7, 2008 at 6:32 PM, Anand Balachandran Pillai > wrote: > > On Fri, Mar 7, 2008 at 6:30 PM, Anand Balachandran Pillai > > wrote: > > > > > > On Fri, Mar 7, 2008 at 6:05 PM, Harish Krishnan < > bugsy.seigel at gmail.com> wrote: > > > > > > > > > > > > On 07-Mar-08, at 4:57 PM, Anand Balachandran Pillai wrote: > > > > > > > > > > > > 1. Automate blog posting backend when a mail which seems to > mention a new > > > > job posting is posted. This can be done bye requiring specific > keyword(s) > > > > in > > > > the subject for job postings such as [JOB]. I am not sure, but > mailman > > > > might > > > > allow such customizations in the backend. > > > > > > > > Sounds like a nice idea. It would also be good if we have a policy > for not > > > > posting jobs directly on the mailing list else it will lead to > duplication. > > > > > > > > > > > > > > > > 2. An incremental crawler (always!) which monitors the group for > postings > > > > and > > > > automatically fetches JOB posting posts (similar approach, use > keywords or > > > > naive bayesian classification!) and post it to a specific blog. > > > > > > > > > > > > > > > > This is even better. what does it take for this to work? > > > > > > > > > > Nothing much. Just give me half a day to create a custom crawler for > this > > > on top of HarvestMan :) > > Ok, this is not posturing :) If someone can register an appropriate > blog and > > send me the URL and the auth credentials I will create the "job > > posting crawler". > > Only that someone has to bear the responsibility of running it on > > a frequent basis. > > > > gnuyoga, can you do this ? It would be a nice exercise to write a > custom > > crawler for this... > > > > > > > > > Harish > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > BangPypers mailing list > > > > BangPypers at python.org > > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > > > > > > > > > > -- > > > -Anand > > > > > > > Thanks > > > > -- > > -Anand > > > > > > -- > -Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Dorai Thodla (http://www.thodla.com) US: 650-206-2688 India: 98408 89258 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080308/3551dd52/attachment.htm From gnuyoga at gmail.com Sat Mar 8 06:56:42 2008 From: gnuyoga at gmail.com (gnuyoga) Date: Sat, 08 Mar 2008 11:26:42 +0530 Subject: [BangPypers] Idea In-Reply-To: <8548c5f30803070828p6987bc98i85d2de2fb47fc14d@mail.gmail.com> References: <23EECEC9B06584478B1C9E38C253D35FF230FF@minsk.us.stoke.com> <8548c5f30803070248v60fb3a63t58ae4d5e00a5850b@mail.gmail.com> <8548c5f30803070256u770776cdgeea3490b4c68de7f@mail.gmail.com> <8548c5f30803070327o79c7f9ddtcf6cc44b66dae451@mail.gmail.com> <8548c5f30803070327i6d6be0d3nc0ea1bf88f5b4ca@mail.gmail.com> <8548c5f30803070500s3ec48a63l65aa8d66c73fe59b@mail.gmail.com> <8548c5f30803070502r1b69ecbei524f970908ef21a1@mail.gmail.com> <8548c5f30803070828p6987bc98i85d2de2fb47fc14d@mail.gmail.com> Message-ID: <47D22A9A.4070609@gmail.com> do u think we should crypt the email id ... or atleast remove @.replace(at) - sree Anand Balachandran Pillai wrote: > I actually went ahead and did this today. I registered a new blog > at http://pythonjobs.blogspot.com . It took me roughly 3 hours to > write a custom crawler using HarvestMan to crawl monthly archives > of bangpypers and post Jobs automatically to blogger. It uses > the Google blogger API in gdata-python-client library. > > -- http://picasaweb.google.com/gnuyoga Each soul is potentially divine. The goal is to manifest the divine by controlling nature, internal or external. Do this by work or worship or psychic control or philosophy by one or more, or all of these and be free. From abpillai at gmail.com Sat Mar 8 07:57:05 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Sat, 8 Mar 2008 12:27:05 +0530 Subject: [BangPypers] Interested parties for Zope3 based Project In-Reply-To: <9264E674-7C02-49AC-B3F3-26529C25D00A@au-kbc.org> References: <9264E674-7C02-49AC-B3F3-26529C25D00A@au-kbc.org> Message-ID: <8548c5f30803072257m20d59409v2541d5a29e51fe4e@mail.gmail.com> Not just that, if you do so, your post will be automatically collected and posted to the jobs blog the next time the "job crawler" crawls the month's archives. Till I make the crawler more smart with some adaptive learning algorithm, you need to make sure that you add [JOB] to the subject line. On 3/8/08, Kenneth Gonsalves wrote: > please repost this with the word [JOB] in the subject line - please > note that this is a requirement for all job postings on this list > > On 07-Mar-08, at 4:22 PM, Ashok Hariharan wrote: > > > Hello there: > > > > I am a consultant with UN/DESA a United Nations organization involved > > in building a > > Parliamentary Information System on the Zope3 platform. > > > > We are shortly publishing a Terms-of-Reference for a contract of > > development of a part > > of the application. Companies / consultants interested in bidding for > > this work may contact > > me offlist, > > > > thanks > > > > Ashok Hariharan > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > -- > regards > > Kenneth Gonsalves > Associate, NRC-FOSS > lawgon at au-kbc.org > http://nrcfosshelpline.in/web/ > > Foss conference for the common man: http://registration.fossconf.in/web/ > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Sent from Gmail for mobile | mobile.google.com -Anand From lawgon at au-kbc.org Sat Mar 8 08:03:38 2008 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Sat, 8 Mar 2008 12:33:38 +0530 Subject: [BangPypers] Interested parties for Zope3 based Project In-Reply-To: <8548c5f30803072257m20d59409v2541d5a29e51fe4e@mail.gmail.com> References: <9264E674-7C02-49AC-B3F3-26529C25D00A@au-kbc.org> <8548c5f30803072257m20d59409v2541d5a29e51fe4e@mail.gmail.com> Message-ID: <14E7CD34-CF33-4D1E-94C6-FFF842A1A63A@au-kbc.org> On 08-Mar-08, at 12:27 PM, Anand Balachandran Pillai wrote: > Not just that, if you do so, your post will be automatically collected > and posted to the jobs blog the next time the "job crawler" crawls the > month's archives. Till I make the crawler more smart with some > adaptive learning algorithm, you need to make sure that you add [JOB] > to the subject line. that is what I meant -- regards Kenneth Gonsalves Associate, NRC-FOSS lawgon at au-kbc.org http://nrcfosshelpline.in/web/ Foss conference for the common man: http://registration.fossconf.in/web/ From gnuyoga at gmail.com Sat Mar 8 15:09:13 2008 From: gnuyoga at gmail.com (gnuyoga) Date: Sat, 08 Mar 2008 19:39:13 +0530 Subject: [BangPypers] Interested parties for Zope3 based Project In-Reply-To: <8548c5f30803072257m20d59409v2541d5a29e51fe4e@mail.gmail.com> References: <9264E674-7C02-49AC-B3F3-26529C25D00A@au-kbc.org> <8548c5f30803072257m20d59409v2541d5a29e51fe4e@mail.gmail.com> Message-ID: <47D29E09.9030400@gmail.com> i will just say WOW - sree Anand Balachandran Pillai wrote: > Not just that, if you do so, your post will be automatically collected > and posted to the jobs blog the next time the "job crawler" crawls the > month's archives. Till I make the crawler more smart with some > adaptive learning algorithm, you need to make sure that you add [JOB] > to the subject line. > -- http://picasaweb.google.com/gnuyoga Each soul is potentially divine. The goal is to manifest the divine by controlling nature, internal or external. Do this by work or worship or psychic control or philosophy by one or more, or all of these and be free. From abpillai at gmail.com Mon Mar 10 08:09:44 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 10 Mar 2008 12:39:44 +0530 Subject: [BangPypers] Fwd: [JOB] Interested parties for Zope3 based Project In-Reply-To: References: Message-ID: <8548c5f30803100009m7b1672dfp734cf1206980ddda@mail.gmail.com> Hi, I am reposting this with [JOB] in the subject line, so that the crawler picks it up. --Anand ---------- Forwarded message ---------- From: Ashok Hariharan Date: Fri, Mar 7, 2008 at 4:22 PM Subject: Re: [BangPypers] Interested parties for Zope3 based Project To: bangpypers at python.org Hello there: I am a consultant with UN/DESA a United Nations organization involved in building a Parliamentary Information System on the Zope3 platform. We are shortly publishing a Terms-of-Reference for a contract of development of a part of the application. Companies / consultants interested in bidding for this work may contact me offlist, thanks Ashok Hariharan _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers -- -Anand From abpillai at gmail.com Mon Mar 10 08:20:19 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 10 Mar 2008 12:50:19 +0530 Subject: [BangPypers] The Jobs Blog Message-ID: <8548c5f30803100020w60e7117dm3a737ee67216ce25@mail.gmail.com> Hi, The Jobs blog is up to date as of all posts in 2008, till the most recent post. A few things to note when posting job related postings to this list. - Please make sure to add [JOB] in the subject line if you want it to appear in the jobs blog. If you don't want the posting to appear in the blog for some reason, don't add the [JOB] string! - Refrain from giving out phone numbers in the posts, unless you are sure about it. Mailman obfuscates email addresses by replacing '@' with 'at' (me at my.com => me at my.com), so email addresses are relatively safe in such postings. This is because as of now the crawler does not do any kind of data filtering on the posts. I have configured the crawler to run automatically by listening to the RSS feeds from the list, if any new post contains the [JOB] string. Regards -- -Anand From bugsy.seigel at gmail.com Mon Mar 10 12:15:05 2008 From: bugsy.seigel at gmail.com (Harish Krishnan) Date: Mon, 10 Mar 2008 16:45:05 +0530 Subject: [BangPypers] The Jobs Blog In-Reply-To: <8548c5f30803100020w60e7117dm3a737ee67216ce25@mail.gmail.com> References: <8548c5f30803100020w60e7117dm3a737ee67216ce25@mail.gmail.com> Message-ID: <6454BCD0-A351-4635-9948-3169C468F258@gmail.com> Cannot find the mail where the job. Can you tell me where the blog is? Harish On 10-Mar-08, at 12:50 PM, Anand Balachandran Pillai wrote: > Hi, > > The Jobs blog is up to date as of all posts in 2008, till the most > recent post. > A few things to note when posting job related postings to this list. > From abpillai at gmail.com Mon Mar 10 12:21:02 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 10 Mar 2008 16:51:02 +0530 Subject: [BangPypers] The Jobs Blog In-Reply-To: <6454BCD0-A351-4635-9948-3169C468F258@gmail.com> References: <8548c5f30803100020w60e7117dm3a737ee67216ce25@mail.gmail.com> <6454BCD0-A351-4635-9948-3169C468F258@gmail.com> Message-ID: <8548c5f30803100421x31bfa8d4ta4b4d0aac55d2dde@mail.gmail.com> http://pythonjobs.blogspot.com On Mon, Mar 10, 2008 at 4:45 PM, Harish Krishnan wrote: > Cannot find the mail where the job. Can you tell me where the blog is? > > Harish > > > On 10-Mar-08, at 12:50 PM, Anand Balachandran Pillai wrote: > > > Hi, > > > > The Jobs blog is up to date as of all posts in 2008, till the most > > recent post. > > A few things to note when posting job related postings to this list. > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -Anand From gnuyoga at gmail.com Mon Mar 10 13:50:04 2008 From: gnuyoga at gmail.com (gnuyoga) Date: Mon, 10 Mar 2008 18:20:04 +0530 Subject: [BangPypers] The Jobs Blog In-Reply-To: <8548c5f30803100020w60e7117dm3a737ee67216ce25@mail.gmail.com> References: <8548c5f30803100020w60e7117dm3a737ee67216ce25@mail.gmail.com> Message-ID: <47D52E7C.1070404@gmail.com> g8 man 8-) - sree Anand Balachandran Pillai wrote: > Hi, > > The Jobs blog is up to date as of all posts in 2008, till the most recent post. > A few things to note when posting job related postings to this list. > -- http://picasaweb.google.com/gnuyoga Each soul is potentially divine. The goal is to manifest the divine by controlling nature, internal or external. Do this by work or worship or psychic control or philosophy by one or more, or all of these and be free. From sridhar.ratna at gmail.com Tue Mar 11 01:07:25 2008 From: sridhar.ratna at gmail.com (Sridhar Ratnakumar) Date: Mon, 10 Mar 2008 17:07:25 -0700 Subject: [BangPypers] The Jobs Blog In-Reply-To: <8548c5f30803100421x31bfa8d4ta4b4d0aac55d2dde@mail.gmail.com> References: <8548c5f30803100020w60e7117dm3a737ee67216ce25@mail.gmail.com> <6454BCD0-A351-4635-9948-3169C468F258@gmail.com> <8548c5f30803100421x31bfa8d4ta4b4d0aac55d2dde@mail.gmail.com> Message-ID: <7c73a13a0803101707y5ed8d914l2a04a666b2f71d49@mail.gmail.com> On Mon, Mar 10, 2008 at 4:21 AM, Anand Balachandran Pillai wrote: > http://pythonjobs.blogspot.com > It could also be extended to post [JOB] postings from different local mailing lists for Python. bangalore.pythonjobs.com, vancouver.pythonjobs.com, tokyo.pythonjobs.com, etc... Cheers, Sridhar From sarabhjeetzensar at gmail.com Wed Mar 12 06:46:41 2008 From: sarabhjeetzensar at gmail.com (sarabhjeet) Date: Tue, 11 Mar 2008 22:46:41 -0700 (PDT) Subject: [BangPypers] wxtimer...I need to close a dialog after a particular time... Message-ID: <15998330.post@talk.nabble.com> Hello all, Actually i need to close a dialog automatically after 5-6 seconds. For it what should i do,please help me.I am using wxTimer [code] self.MB = wx.Dialog(self,-1,"hello",pos=(-1,-1),size=(200,100),style=wx.NO_3D) self.MB.Show(True) self.timer = wx.Timer(5,self.Step(self)) self.timer.Start() def Step: if self.timer.IsRunning(): print "" else: self.MB.Close(True) [code] Is this code is not correct or what? Please help me. -- View this message in context: http://www.nabble.com/wxtimer...I-need-to-close-a-dialog-after-a-particular-time...-tp15998330p15998330.html Sent from the BangPypers - Bangalore Python Users Group mailing list archive at Nabble.com. From gnuyoga at gmail.com Wed Mar 12 15:28:27 2008 From: gnuyoga at gmail.com (gnuyoga) Date: Wed, 12 Mar 2008 19:58:27 +0530 Subject: [BangPypers] JOB, We are hiring - Java, Python, HTML-JSP, Linux, & Networking Skills Message-ID: <47D7E88B.2060809@gmail.com> < Please don't reply to the group! E-mail me at xnapworks [at] gmail.com with proper subject line. Mail without proper subject lines are discarded !!! > Hi folks, We are a products company. We build network appliances and network services for SMEs and Enterprises, more about us at www.xnapworks.com. We are looking for talented people who are passionate about programing specifically in Java, Python, or networking. People who are passionate, get a kick going the extra mile to challenge themselves, are committed, enjoy taking responsibility are invited to submit their resumes in the relevant email id. We are looking for multiple kinds of skill sets 1) People with 6 months - 1.5 year experience in any software development methodology, preference given (Spring 2.0, Struts, HTML, JSP, Python). If the skills match they will be paid according to industry standards. A good understanding of Java and programing frameworks commensurate with experience is what we are looking for. Write to following email with respective subject line. Mails without proper subject lines are discarded. xnapworks [at] gmail.com with Subject: /JAVA March 2008 / xnapworks [at] gmail.com with Subject: /PYTHON March 2008/ xnapworks [at] gmail.com with Subject: /HTMLJSP March 2008 (mails will be deleted if there is no subject line) / 2) People with no experience but who are quick learners and who are passionate about working in Java, Python, HTML-JSP, Linux & Open source related technologies can apply. To apply you must demonstrate a fundamental understanding of Java, Python, and Linux OS concepts. You must have written at least one program, not the college variety for your curriculum but something you did because of your interest to create something useful, maybe. The people recruited in this stream will have to take up a project and prove themselves in two months. During this period they will be provided with a handsome stipend. xnapworks [at] gmail.com with Subject: GRINDER March 2008 3) If you are interested in networking and can explain things like; What is DNS and DDNS How email works? How is spam generated? Debate about different kinds of anti spam techniques. RAID NAT & Proxy xnapworks [at] gmail.com with Subject: NET_TECH March 2008 *What we have to offer* A decent salary so your material needs get taken care of. That out of the way, now for the psychological needs: A comfortable office. Adequate Infrastructure Mostly Good Food Unlimited Coffee / Tea / Green Tea Great bunch of people to work with A casual work environment that strives to balance hard work & play Cutting edge challenges & projects that will test your skill and require ingenuity In case if you have any queries, please write a mail to xnapworks [at] gmail.com with "QUERY" in subject line. - XNAPWorks Team @ Astha Technologies -- http://picasaweb.google.com/gnuyoga Each soul is potentially divine. The goal is to manifest the divine by controlling nature, internal or external. Do this by work or worship or psychic control or philosophy by one or more, or all of these and be free. From lawgon at au-kbc.org Thu Mar 13 02:03:12 2008 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Thu, 13 Mar 2008 06:33:12 +0530 Subject: [BangPypers] JOB, We are hiring - Java, Python, HTML-JSP, Linux, & Networking Skills In-Reply-To: <47D7E88B.2060809@gmail.com> References: <47D7E88B.2060809@gmail.com> Message-ID: will the crawler find JOB without the []? On 12-Mar-08, at 7:58 PM, gnuyoga wrote: > < Please don't reply to the group! E-mail me at xnapworks [at] > gmail.com > with proper subject line. Mail > without > proper subject lines are discarded !!! > -- regards Kenneth Gonsalves Associate, NRC-FOSS lawgon at au-kbc.org http://nrcfosshelpline.in/code/ From heshan.suri at gmail.com Thu Mar 13 07:09:43 2008 From: heshan.suri at gmail.com (Heshan Suriyaarachchi) Date: Thu, 13 Mar 2008 11:39:43 +0530 Subject: [BangPypers] Finding methods in a python script Message-ID: <12e5d0d90803122309i76c508afrb18c7443ac491eeb@mail.gmail.com> Hi , I am having a python script which is having a class and some methods. I need to know whether there is a way to find out which methods are there in this script from another python script. Is there something like reflection in python which could help me in this process. If someone can direct me to a code sample doing this I will be grateful. Thanx in advance Heshan Suriyaarachchi -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080313/6e0b8532/attachment.htm From akashmahajan at gmail.com Thu Mar 13 07:14:46 2008 From: akashmahajan at gmail.com (Akash) Date: Thu, 13 Mar 2008 11:44:46 +0530 Subject: [BangPypers] Finding methods in a python script In-Reply-To: <12e5d0d90803122309i76c508afrb18c7443ac491eeb@mail.gmail.com> References: <12e5d0d90803122309i76c508afrb18c7443ac491eeb@mail.gmail.com> Message-ID: <868b524f0803122314n411bbe27j36b0793c273dc3e9@mail.gmail.com> On Thu, Mar 13, 2008 at 11:39 AM, Heshan Suriyaarachchi wrote: > Hi , > I am having a python script which is having a class and some methods. I > need to know whether there is a way to find out which methods are there in > this script from another python script. Is there something like reflection > in python which could help me in this process. If someone can direct me to a > code sample doing this I will be grateful. How about creating an object of that class and using dir() on that? From pradeep at btbytes.com Thu Mar 13 07:53:50 2008 From: pradeep at btbytes.com (Pradeep Kishore Gowda) Date: Thu, 13 Mar 2008 12:23:50 +0530 Subject: [BangPypers] Finding methods in a python script In-Reply-To: <868b524f0803122314n411bbe27j36b0793c273dc3e9@mail.gmail.com> References: <12e5d0d90803122309i76c508afrb18c7443ac491eeb@mail.gmail.com> <868b524f0803122314n411bbe27j36b0793c273dc3e9@mail.gmail.com> Message-ID: <3e3294b70803122353p1dbaf372t961ad6523698e8f5@mail.gmail.com> You mean something like this: http://dpaste.com/39212/ On 3/13/08, Akash wrote: > On Thu, Mar 13, 2008 at 11:39 AM, Heshan Suriyaarachchi > wrote: > > Hi , > > I am having a python script which is having a class and some methods. I > > need to know whether there is a way to find out which methods are there in > > this script from another python script. Is there something like reflection > > in python which could help me in this process. If someone can direct me to a > > code sample doing this I will be grateful. > > > How about creating an object of that class and using dir() on that? > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Home - http://btbytes.com Heart - http://sampada.net Yummy! - http://konkanirecipes.com From heshan.suri at gmail.com Thu Mar 13 09:49:45 2008 From: heshan.suri at gmail.com (Heshan Suriyaarachchi) Date: Thu, 13 Mar 2008 14:19:45 +0530 Subject: [BangPypers] Finding methods in a python script In-Reply-To: <3e3294b70803122353p1dbaf372t961ad6523698e8f5@mail.gmail.com> References: <12e5d0d90803122309i76c508afrb18c7443ac491eeb@mail.gmail.com> <868b524f0803122314n411bbe27j36b0793c273dc3e9@mail.gmail.com> <3e3294b70803122353p1dbaf372t961ad6523698e8f5@mail.gmail.com> Message-ID: <12e5d0d90803130149t7757024ajfd2b482ec741b17d@mail.gmail.com> Hi I am talking about a scenario like this class A: def foo(var1,var2): return 'Hello' def echo(): return 'testing' class B: def bar(car): val = car return car What I need is to find out the classes and the methods of each class with their parameters. i.e. class A foo(var,var) echo() when using dir() it does not show the methods and the method parameters . Regards Heshan Suriyaarachchi On Thu, Mar 13, 2008 at 12:23 PM, Pradeep Kishore Gowda wrote: > You mean something like this: http://dpaste.com/39212/ > > On 3/13/08, Akash wrote: > > On Thu, Mar 13, 2008 at 11:39 AM, Heshan Suriyaarachchi > > wrote: > > > Hi , > > > I am having a python script which is having a class and some > methods. I > > > need to know whether there is a way to find out which methods are > there in > > > this script from another python script. Is there something like > reflection > > > in python which could help me in this process. If someone can direct > me to a > > > code sample doing this I will be grateful. > > > > > > How about creating an object of that class and using dir() on that? > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > -- > Home - http://btbytes.com > Heart - http://sampada.net > Yummy! - http://konkanirecipes.com > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080313/4ac7401b/attachment.htm From pradeep at btbytes.com Thu Mar 13 10:10:14 2008 From: pradeep at btbytes.com (Pradeep Kishore Gowda) Date: Thu, 13 Mar 2008 14:40:14 +0530 Subject: [BangPypers] Finding methods in a python script In-Reply-To: <12e5d0d90803130149t7757024ajfd2b482ec741b17d@mail.gmail.com> References: <12e5d0d90803122309i76c508afrb18c7443ac491eeb@mail.gmail.com> <868b524f0803122314n411bbe27j36b0793c273dc3e9@mail.gmail.com> <3e3294b70803122353p1dbaf372t961ad6523698e8f5@mail.gmail.com> <12e5d0d90803130149t7757024ajfd2b482ec741b17d@mail.gmail.com> Message-ID: <3e3294b70803130210r2b6db2dg318ea8e036b44853@mail.gmail.com> On 3/13/08, Heshan Suriyaarachchi wrote: > Hi > I am talking about a scenario like this > > class A: > def foo(var1,var2): > return 'Hello' > def echo(): > return 'testing' > > > class B: > def bar(car): > val = car > return car > > What I need is to find out the classes and the methods of each class with > their parameters. > i.e. class A > foo(var,var) > echo() > > when using dir() it does not show the methods and the method parameters . ## foo2.py class A: pass class ABC: pass def foo(): return 'Hello' def bar(): return 899 PI = 22/7 ## print_methods.py import types import foo2 # In python everything is available as a dict all = foo2.__dict__ # run through the items and check whether they are classes are functions for i in all.keys(): if type(all[i]) == types.ClassType: print i, 'is a class' elif type(all[i]) == types.FunctionType: print i, 'is a function' # of course this gives only the top level functions and classes. # Traverse the Tree to get the classes and methods like you wanted. # Pradeep -- Home - http://btbytes.com Heart - http://sampada.net Yummy! - http://konkanirecipes.com From pradeep at btbytes.com Thu Mar 13 10:11:19 2008 From: pradeep at btbytes.com (Pradeep Kishore Gowda) Date: Thu, 13 Mar 2008 14:41:19 +0530 Subject: [BangPypers] Finding methods in a python script In-Reply-To: <3e3294b70803130210r2b6db2dg318ea8e036b44853@mail.gmail.com> References: <12e5d0d90803122309i76c508afrb18c7443ac491eeb@mail.gmail.com> <868b524f0803122314n411bbe27j36b0793c273dc3e9@mail.gmail.com> <3e3294b70803122353p1dbaf372t961ad6523698e8f5@mail.gmail.com> <12e5d0d90803130149t7757024ajfd2b482ec741b17d@mail.gmail.com> <3e3294b70803130210r2b6db2dg318ea8e036b44853@mail.gmail.com> Message-ID: <3e3294b70803130211l688c6bf4m4ca64c973f719f19@mail.gmail.com> Ah! i forgot about the function parameter list.. Will look into it. +Pradeep On 3/13/08, Pradeep Kishore Gowda wrote: > On 3/13/08, Heshan Suriyaarachchi wrote: > > Hi > > > I am talking about a scenario like this > > > > class A: > > def foo(var1,var2): > > return 'Hello' > > def echo(): > > return 'testing' > > > > > > class B: > > def bar(car): > > val = car > > return car > > > > What I need is to find out the classes and the methods of each class with > > their parameters. > > i.e. class A > > foo(var,var) > > echo() > > > > when using dir() it does not show the methods and the method parameters . > > > > ## foo2.py > class A: > pass > > class ABC: > pass > > def foo(): > return 'Hello' > > def bar(): > return 899 > > PI = 22/7 > > ## print_methods.py > import types > import foo2 > > # In python everything is available as a dict > all = foo2.__dict__ > > # run through the items and check whether they are classes are functions > for i in all.keys(): > if type(all[i]) == types.ClassType: > print i, 'is a class' > elif type(all[i]) == types.FunctionType: > print i, 'is a function' > > # of course this gives only the top level functions and classes. > > # Traverse the Tree to get the classes and methods like you wanted. > > # Pradeep > > > -- > > Home - http://btbytes.com > Heart - http://sampada.net > Yummy! - http://konkanirecipes.com > -- Home - http://btbytes.com Heart - http://sampada.net Yummy! - http://konkanirecipes.com From chirayu at chirayu.org Thu Mar 13 10:29:55 2008 From: chirayu at chirayu.org (Chirayu Patel) Date: Thu, 13 Mar 2008 14:59:55 +0530 Subject: [BangPypers] Finding methods in a python script In-Reply-To: <12e5d0d90803130149t7757024ajfd2b482ec741b17d@mail.gmail.com> References: <12e5d0d90803122309i76c508afrb18c7443ac491eeb@mail.gmail.com> <868b524f0803122314n411bbe27j36b0793c273dc3e9@mail.gmail.com> <3e3294b70803122353p1dbaf372t961ad6523698e8f5@mail.gmail.com> <12e5d0d90803130149t7757024ajfd2b482ec741b17d@mail.gmail.com> Message-ID: <6de82a140803130229x3b3fc59dof6817c578d0def52@mail.gmail.com> Heshan, You will find http://docs.python.org/lib/inspect-types.html helpful. "A.__dict__["foo"].func_code.co_varnames" will give you arguments of foo. CP On 3/13/08, Heshan Suriyaarachchi wrote: > > Hi > I am talking about a scenario like this > > class A: > def foo(var1,var2): > return 'Hello' > def echo(): > return 'testing' > > > class B: > def bar(car): > val = car > return car > > What I need is to find out the classes and the methods of each class with > their parameters. > i.e. class A > foo(var,var) > echo() > > when using dir() it does not show the methods and the method parameters . > > Regards > Heshan Suriyaarachchi > > On Thu, Mar 13, 2008 at 12:23 PM, Pradeep Kishore Gowda < > pradeep at btbytes.com> wrote: > > > You mean something like this: http://dpaste.com/39212/ > > > > On 3/13/08, Akash wrote: > > > On Thu, Mar 13, 2008 at 11:39 AM, Heshan Suriyaarachchi > > > wrote: > > > > Hi , > > > > I am having a python script which is having a class and some > > methods. I > > > > need to know whether there is a way to find out which methods are > > there in > > > > this script from another python script. Is there something like > > reflection > > > > in python which could help me in this process. If someone can > > direct me to a > > > > code sample doing this I will be grateful. > > > > > > > > > How about creating an object of that class and using dir() on that? > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > -- > > Home - http://btbytes.com > > Heart - http://sampada.net > > Yummy! - http://konkanirecipes.com > > _______________________________________________ > > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080313/f0742c61/attachment.htm From Seshadri_N at Dell.com Thu Mar 13 10:29:10 2008 From: Seshadri_N at Dell.com (Seshadri_N at Dell.com) Date: Thu, 13 Mar 2008 14:59:10 +0530 Subject: [BangPypers] Finding methods in a python script In-Reply-To: <3e3294b70803130211l688c6bf4m4ca64c973f719f19@mail.gmail.com> References: <12e5d0d90803122309i76c508afrb18c7443ac491eeb@mail.gmail.com><868b524f0803122314n411bbe27j36b0793c273dc3e9@mail.gmail.com><3e3294b70803122353p1dbaf372t961ad6523698e8f5@mail.gmail.com><12e5d0d90803130149t7757024ajfd2b482ec741b17d@mail.gmail.com><3e3294b70803130210r2b6db2dg318ea8e036b44853@mail.gmail.com> <3e3294b70803130211l688c6bf4m4ca64c973f719f19@mail.gmail.com> Message-ID: <81033E9CB8B5E54F95356B223C213B7701101EF6@blrx3m02.blr.amer.dell.com> In addition to all the nice tips provided earlier... my 0.2cents ! If your module has doc strings then you can use something like: ~~~~~~~~~~~~~ import os help(os) ~~~~~~~~~~~~~ -- seShadri -----Original Message----- From: bangpypers-bounces at python.org [mailto:bangpypers-bounces at python.org] On Behalf Of Pradeep Kishore Gowda Sent: Thursday, March 13, 2008 2:41 PM To: Bangalore Python Users Group - India Subject: Re: [BangPypers] Finding methods in a python script Ah! i forgot about the function parameter list.. Will look into it. +Pradeep On 3/13/08, Pradeep Kishore Gowda wrote: > On 3/13/08, Heshan Suriyaarachchi wrote: > > Hi > > > I am talking about a scenario like this > > > > class A: > > def foo(var1,var2): > > return 'Hello' > > def echo(): > > return 'testing' > > > > > > class B: > > def bar(car): > > val = car > > return car > > > > What I need is to find out the classes and the methods of each > class with > their parameters. > > i.e. class A > > foo(var,var) > > echo() > > > > when using dir() it does not show the methods and the method parameters . > > > > ## foo2.py > class A: > pass > > class ABC: > pass > > def foo(): > return 'Hello' > > def bar(): > return 899 > > PI = 22/7 > > ## print_methods.py > import types > import foo2 > > # In python everything is available as a dict all = foo2.__dict__ > > # run through the items and check whether they are classes are > functions for i in all.keys(): > if type(all[i]) == types.ClassType: > print i, 'is a class' > elif type(all[i]) == types.FunctionType: > print i, 'is a function' > > # of course this gives only the top level functions and classes. > > # Traverse the Tree to get the classes and methods like you wanted. > > # Pradeep > > > -- > > Home - http://btbytes.com > Heart - http://sampada.net > Yummy! - http://konkanirecipes.com > -- Home - http://btbytes.com Heart - http://sampada.net Yummy! - http://konkanirecipes.com _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers From abpillai at gmail.com Thu Mar 13 10:44:59 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 13 Mar 2008 15:14:59 +0530 Subject: [BangPypers] Finding methods in a python script In-Reply-To: <81033E9CB8B5E54F95356B223C213B7701101EF6@blrx3m02.blr.amer.dell.com> References: <12e5d0d90803122309i76c508afrb18c7443ac491eeb@mail.gmail.com> <868b524f0803122314n411bbe27j36b0793c273dc3e9@mail.gmail.com> <3e3294b70803122353p1dbaf372t961ad6523698e8f5@mail.gmail.com> <12e5d0d90803130149t7757024ajfd2b482ec741b17d@mail.gmail.com> <3e3294b70803130210r2b6db2dg318ea8e036b44853@mail.gmail.com> <3e3294b70803130211l688c6bf4m4ca64c973f719f19@mail.gmail.com> <81033E9CB8B5E54F95356B223C213B7701101EF6@blrx3m02.blr.amer.dell.com> Message-ID: <8548c5f30803130244y4bef0318ha2bd1f9a024a2b89@mail.gmail.com> Here is a full program. """ List classes, methods, functions and function/method args in a module Created: Anand B Pillai """ from types import * import inspect def analyze_func(obj, method=False): if method: print 'Method: %s' % obj.__name__ else: print 'Function: %s' % obj.__name__ arginfo = inspect.getargspec(obj) args = arginfo[0] argsvar = arginfo[1] if args: if args[0] == 'self': print '\t%s is an instance method' % obj.__name__ args.pop(0) print '\tMethod Arguments: %s' % ' '.join(args) if arginfo[3]: dl = len(arginfo[3]) al = len(args) defargs = args[al-dl:al] print 'Default arguments:',zip(defargs, arginfo[3]) if arginfo[1]: print '\t Positional Args Param: %s' % arginfo[1] if arginfo[2]: print '\t Keyword Args Param: %s' % arginfo[2] def analyze_klass(obj): print 'Class: %s' % obj.__name__ for name in obj.__dict__: item = getattr(obj, name) if type(item) is MethodType: analyze_func(item, True) def classify(module): print 'Module: %s' % module.__name__ for name in dir(module): obj = getattr(module, name) if type(obj) in (ClassType, TypeType): analyze_klass(obj) elif type(obj) is FunctionType: analyze_func(obj) if __name__ == "__main__": import test classify(test) On Thu, Mar 13, 2008 at 2:59 PM, wrote: > In addition to all the nice tips provided earlier... my 0.2cents ! > > If your module has doc strings then you can use something like: > > ~~~~~~~~~~~~~ > import os > help(os) > ~~~~~~~~~~~~~ > > -- > seShadri > > > > -----Original Message----- > From: bangpypers-bounces at python.org > [mailto:bangpypers-bounces at python.org] On Behalf Of Pradeep Kishore > Gowda > Sent: Thursday, March 13, 2008 2:41 PM > To: Bangalore Python Users Group - India > Subject: Re: [BangPypers] Finding methods in a python script > > Ah! i forgot about the function parameter list.. Will look into it. > > +Pradeep > > On 3/13/08, Pradeep Kishore Gowda wrote: > > On 3/13/08, Heshan Suriyaarachchi wrote: > > > Hi > > > > > I am talking about a scenario like this > > > > > > class A: > > > def foo(var1,var2): > > > return 'Hello' > > > def echo(): > > > return 'testing' > > > > > > > > > class B: > > > def bar(car): > > > val = car > > > return car > > > > > > What I need is to find out the classes and the methods of each > > class with > their parameters. > > > i.e. class A > > > foo(var,var) > > > echo() > > > > > > when using dir() it does not show the methods and the method > parameters . > > > > > > > > ## foo2.py > > class A: > > pass > > > > class ABC: > > pass > > > > def foo(): > > return 'Hello' > > > > def bar(): > > return 899 > > > > PI = 22/7 > > > > ## print_methods.py > > import types > > import foo2 > > > > # In python everything is available as a dict all = foo2.__dict__ > > > > # run through the items and check whether they are classes are > > functions for i in all.keys(): > > if type(all[i]) == types.ClassType: > > print i, 'is a class' > > elif type(all[i]) == types.FunctionType: > > print i, 'is a function' > > > > # of course this gives only the top level functions and classes. > > > > # Traverse the Tree to get the classes and methods like you wanted. > > > > # Pradeep > > > > > > -- > > > > Home - http://btbytes.com > > Heart - http://sampada.net > > Yummy! - http://konkanirecipes.com > > > > > -- > Home - http://btbytes.com > Heart - http://sampada.net > Yummy! - http://konkanirecipes.com > _______________________________________________ > 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 > -- -Anand From skksundar at yahoo.co.in Mon Mar 17 14:07:24 2008 From: skksundar at yahoo.co.in (Senthil) Date: Mon, 17 Mar 2008 18:37:24 +0530 (IST) Subject: [BangPypers] [ Help ] extracting SOAP version from server Message-ID: <549743.15914.qm@web94614.mail.in2.yahoo.com> An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080317/9743dde3/attachment.htm From gurpreet.sachdeva at gmail.com Tue Mar 18 06:08:18 2008 From: gurpreet.sachdeva at gmail.com (Gurpreet Sachdeva) Date: Tue, 18 Mar 2008 10:38:18 +0530 Subject: [BangPypers] Handling unicode characters in xml.dom Message-ID: Hi, Any idea how to handle the unicode characters existing in an xml file while parsing it. This is what I am doing: from xml.dom import minidom xmlObj = minidom.parse(fileobj) And the script throws an error because of some special characters [ 'f(3gp????'] present in the xml file. Any suggestion/pointers would be appreciated Thanks and Regards, Gurpreet Singh -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080318/067be27e/attachment.htm From abpillai at gmail.com Tue Mar 18 06:14:13 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Tue, 18 Mar 2008 10:44:13 +0530 Subject: [BangPypers] Handling unicode characters in xml.dom In-Reply-To: References: Message-ID: <8548c5f30803172214h3e897568t16fc0d3874313fc0@mail.gmail.com> What is the encoding of your XML file ? i.e in the string ""?>, what is ? Make sure it is an encoding like utf-8 or iso-8859-1 which can help the parser to understand garbage chars. --Anand On Tue, Mar 18, 2008 at 10:38 AM, Gurpreet Sachdeva wrote: > Hi, > > Any idea how to handle the unicode characters existing in an xml file while > parsing it. > > This is what I am doing: > > from xml.dom import minidom > > xmlObj = minidom.parse(fileobj) > > And the script throws an error because of some special characters ['f > (3gp????'] present in the xml file. Any suggestion/pointers would be > appreciated > > Thanks and Regards, > Gurpreet Singh > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- -Anand From parth.technofreak at gmail.com Tue Mar 18 06:33:03 2008 From: parth.technofreak at gmail.com (Parthan SR) Date: Tue, 18 Mar 2008 11:03:03 +0530 Subject: [BangPypers] [Fwd: Google Summer of Code '08 Message-ID: <47DF540F.4060904@gmail.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Forwarded, from an Indian KDE contributor. - ----------------------------------------------------------------------- Hi, Its time for Google Summer of Code '08. Many of you are already following it. But just a reminder and a friendly poke incase you forgot all about it. Of course, KDE will be there like previous years. Check [1] for more details. As a student, all you need is some enthusiasm, willingness to contribute to KDE and Free Software in general. Knowledge of C++ is almost taken for granted in KDE GSoC. Knowledge of Qt/KDE/PyQt framework and programming is a definite ( huge ) plus. If you are already a contributing code to some KDE application, firstly you r0ck, nextly you did yourself a huge favour and have HUGE PLUS-PLUS :). It also works if you have been sending in patches regularly. So if you are one of them, DO submit a proposal. There is a nice *idea* page on the KDE techbase page [2]. Feel free to browse through that and find something that you like or you might be able to pull off. *Strong recommendation* - Please be creative and write your own project proposal. Nothing impresses mentors more than your own enthusiasm to do something uber cool for the project. It is million times better if you write your own project proposal - may be even your own idea that is not there in the idea page which you think might be a cool feature / addition to KDE - instead of copying something from the idea page. Its a idea page after all and not a proposal template page ;). Please read [3] about certain instructions of participations in KDE GSoC. I repeat, please read [3] before applying. It is very detailed and will mostly answer a lot of your questions and will help you frame your proposal in much better way. Last year KDE GSoC participation [4] [5] was really wonderful. It got 40 projects sanctioned by Google which probably was the largest allocation among all the participating projects. There were 213 proposals submitted to Google and 40 were allocated. 3 of those 40 students were Indians, you have ask them about their experiences. I am very sure that they have good things to talk about the same. Since I have met Piyush and Sharan many times in recent past after the SoC '07, I know for sure that they ( and Anirrudh, the third guy ) loved the whole experience and had a blast. Looking forward to your proposal. Good luck. [1]http://code.google.com/soc/2008/kde/about.html [2]http://techbase.kde.org/index.php?title=Projects/Summer_of_Code/2008/Ideas [3]http://techbase.kde.org/index.php?title=Projects/Summer_of_Code/2008/Participation [4]http://dot.kde.org/1176336589/ [5]http://code.google.com/soc/2007/kde/about.html Cheers! Pradeepto - -- With Regards, Parthan aka Technofreak [GPG] 0x2FF01026 [web] http://blog.technofreak.in | http://photos.technofreak.in [irc] techno_freak @ irc.freenode.net (##linux-india) [mobile] +919845446647 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFH31QPk4vYYS/wECYRAqrcAJ9mKv3nTTuP+kM4iaNqVGsZ6R9VXQCfbRLx MWiAcO80unOBIycmzywyFj0= =xBcI -----END PGP SIGNATURE----- From gurpreet.sachdeva at gmail.com Tue Mar 18 06:35:05 2008 From: gurpreet.sachdeva at gmail.com (Gurpreet Sachdeva) Date: Tue, 18 Mar 2008 11:05:05 +0530 Subject: [BangPypers] Handling unicode characters in xml.dom In-Reply-To: <8548c5f30803172214h3e897568t16fc0d3874313fc0@mail.gmail.com> References: <8548c5f30803172214h3e897568t16fc0d3874313fc0@mail.gmail.com> Message-ID: Still the problem exists. - Gurpreet On Tue, Mar 18, 2008 at 10:44 AM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > What is the encoding of your XML file ? i.e in the > string ""?>, > what is ? > > Make sure it is an encoding like utf-8 or iso-8859-1 > which can help the parser to understand garbage > chars. > > --Anand > > > On Tue, Mar 18, 2008 at 10:38 AM, Gurpreet Sachdeva > wrote: > > Hi, > > > > Any idea how to handle the unicode characters existing in an xml file > while > > parsing it. > > > > This is what I am doing: > > > > from xml.dom import minidom > > > > xmlObj = minidom.parse(fileobj) > > > > And the script throws an error because of some special characters ['f > > (3gp????'] present in the xml file. Any suggestion/pointers would be > > appreciated > > > > Thanks and Regards, > > Gurpreet Singh > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > -- > -Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Thanks and Regards, Gurpreet Singh -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080318/78e84afc/attachment.htm From abpillai at gmail.com Tue Mar 18 08:52:22 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Tue, 18 Mar 2008 13:22:22 +0530 Subject: [BangPypers] Handling unicode characters in xml.dom In-Reply-To: References: <8548c5f30803172214h3e897568t16fc0d3874313fc0@mail.gmail.com> Message-ID: <8548c5f30803180052m54fa13c8jc472ac1513ead23d@mail.gmail.com> Is the garbage CDATA or attribute data ? CDATA is like text and attribute is Can you pase the relevant part of the XML file here or if it is small enough, the complete XML file ? Send it directly to me since the list removes attachments. --Anand On Tue, Mar 18, 2008 at 11:05 AM, Gurpreet Sachdeva wrote: > > > Still the problem exists. > > - Gurpreet > > > > On Tue, Mar 18, 2008 at 10:44 AM, Anand Balachandran Pillai > wrote: > > > What is the encoding of your XML file ? i.e in the > > string ""?>, > > what is ? > > > > Make sure it is an encoding like utf-8 or iso-8859-1 > > which can help the parser to understand garbage > > chars. > > > > --Anand > > > > > > > > > > > > On Tue, Mar 18, 2008 at 10:38 AM, Gurpreet Sachdeva > > wrote: > > > Hi, > > > > > > Any idea how to handle the unicode characters existing in an xml file > while > > > parsing it. > > > > > > This is what I am doing: > > > > > > from xml.dom import minidom > > > > > > xmlObj = minidom.parse(fileobj) > > > > > > And the script throws an error because of some special characters ['f > > > (3gp????'] present in the xml file. Any suggestion/pointers would be > > > appreciated > > > > > > Thanks and Regards, > > > Gurpreet Singh > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > > > > -- > > -Anand > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Thanks and Regards, > Gurpreet Singh > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- -Anand From kartheekpn at yahoo.co.in Wed Mar 19 04:21:42 2008 From: kartheekpn at yahoo.co.in (KartheeK) Date: Wed, 19 Mar 2008 03:21:42 +0000 (GMT) Subject: [BangPypers] Redirecting output to a string Message-ID: <887075.1112.qm@web8504.mail.in.yahoo.com> Hi All, I am trying to access the contents of a file in a remote machine and store the contents in string. The command, os.execv(ssh, [ssh, "-l", user, ip] + ['cat /tmp/temp.conf'] works but displays the output on to the screen. I tried, to_be_analysed_txt = os.execv(ssh, [ssh, "-l", user, ip] + ['cat /tmp/temp.conf'] but that does not work out. Regards, KartheeK -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080319/1b925373/attachment.htm From pavithra.hanchagaiah at thirdbrigade.com Wed Mar 19 06:29:11 2008 From: pavithra.hanchagaiah at thirdbrigade.com (Pavithra Hanchagaiah) Date: Wed, 19 Mar 2008 01:29:11 -0400 Subject: [BangPypers] Redirecting output to a string In-Reply-To: <887075.1112.qm@web8504.mail.in.yahoo.com> References: <887075.1112.qm@web8504.mail.in.yahoo.com> Message-ID: <0A5B5EB4DEDAF04B9D035BA5D4FC402001DF1E19@3b-mail.hq.local> Hey Kartheek, execv() doesn't return any value. You can either try using os.popen() variants for the requirement or redirect stdout to file. >From Python Docs: execl( path, arg0, arg1, ...) execle( path, arg0, arg1, ..., env) execlp( file, arg0, arg1, ...) execlpe( file, arg0, arg1, ..., env) execv( path, args) execve( path, args, env) execvp( file, args) execvpe( file, args, env) These functions all execute a new program, replacing the current process; they do not return. Thanks, Pavithra From: bangpypers-bounces at python.org [mailto:bangpypers-bounces at python.org] On Behalf Of KartheeK Sent: Wednesday, March 19, 2008 8:52 AM To: bangpypers at python.org Subject: [BangPypers] Redirecting output to a string Hi All, I am trying to access the contents of a file in a remote machine and store the contents in string. The command, os.execv(ssh, [ssh, "-l", user, ip] + ['cat /tmp/temp.conf'] works but displays the output on to the screen. I tried, to_be_analysed_txt = os.execv(ssh, [ssh, "-l", user, ip] + ['cat /tmp/temp.conf'] but that does not work out. Regards, KartheeK -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080319/dceda518/attachment.htm From pythonic at gmail.com Wed Mar 19 09:06:55 2008 From: pythonic at gmail.com (Pythonic) Date: Wed, 19 Mar 2008 13:36:55 +0530 Subject: [BangPypers] Redirecting output to a string In-Reply-To: <0A5B5EB4DEDAF04B9D035BA5D4FC402001DF1E19@3b-mail.hq.local> References: <887075.1112.qm@web8504.mail.in.yahoo.com> <0A5B5EB4DEDAF04B9D035BA5D4FC402001DF1E19@3b-mail.hq.local> Message-ID: <47E0C99F.3040606@gmail.com> An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080319/2064d19d/attachment.htm From kartheekpn at yahoo.co.in Wed Mar 19 09:39:35 2008 From: kartheekpn at yahoo.co.in (KartheeK) Date: Wed, 19 Mar 2008 08:39:35 +0000 (GMT) Subject: [BangPypers] Redirecting output to a string In-Reply-To: <47E0C99F.3040606@gmail.com> Message-ID: <859396.90046.qm@web8507.mail.in.yahoo.com> Thanks a lot, that worked :) Pythonic wrote: You may want to try commands module import commands cmd = 'ls' status, output = commands.getstatusoutput(cmd) print output Pavithra Hanchagaiah wrote: Hey Kartheek, ? execv() doesn???t return any value. You can either try using os.popen() variants for the requirement or redirect stdout to file. ? From Python Docs: execl( path, arg0, arg1, ...) ? execle( path, arg0, arg1, ..., env) ? execlp( file, arg0, arg1, ...) ? execlpe( file, arg0, arg1, ..., env) ? execv( path, args) ? execve( path, args, env) ? execvp( file, args) ? execvpe( file, args, env) These functions all execute a new program, replacing the current process; they do not return. ? Thanks, Pavithra ? ? From: bangpypers-bounces at python.org [mailto:bangpypers-bounces at python.org] On Behalf Of KartheeK Sent: Wednesday, March 19, 2008 8:52 AM To: bangpypers at python.org Subject: [BangPypers] Redirecting output to a string ? Hi All, I am trying to access the contents of a file in a remote machine and store the contents in string. The command, os.execv(ssh, [ssh, "-l", user, ip] + ['cat /tmp/temp.conf'] works but displays the output on to the screen. I tried, to_be_analysed_txt = os.execv(ssh, [ssh, "-l", user, ip] + ['cat /tmp/temp.conf'] but that does not work out. Regards, KartheeK _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080319/bc8a34a7/attachment-0001.htm From gurpreet.sachdeva at gmail.com Wed Mar 19 10:01:08 2008 From: gurpreet.sachdeva at gmail.com (Gurpreet Sachdeva) Date: Wed, 19 Mar 2008 14:31:08 +0530 Subject: [BangPypers] Handling unicode characters in xml.dom In-Reply-To: <8548c5f30803180052m54fa13c8jc472ac1513ead23d@mail.gmail.com> References: <8548c5f30803172214h3e897568t16fc0d3874313fc0@mail.gmail.com> <8548c5f30803180052m54fa13c8jc472ac1513ead23d@mail.gmail.com> Message-ID: The XML is: Thanks, Gurpreet On Tue, Mar 18, 2008 at 1:22 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > Is the garbage CDATA or attribute data ? > > CDATA is like text and attribute > is > > Can you pase the relevant part of the XML file here or if it is > small enough, the complete XML file ? Send it directly to me > since the list removes attachments. > > --Anand > > On Tue, Mar 18, 2008 at 11:05 AM, Gurpreet Sachdeva > wrote: > > > > > > Still the problem exists. > > > > - Gurpreet > > > > > > > > On Tue, Mar 18, 2008 at 10:44 AM, Anand Balachandran Pillai > > wrote: > > > > > What is the encoding of your XML file ? i.e in the > > > string ""?>, > > > what is ? > > > > > > Make sure it is an encoding like utf-8 or iso-8859-1 > > > which can help the parser to understand garbage > > > chars. > > > > > > --Anand > > > > > > > > > > > > > > > > > > On Tue, Mar 18, 2008 at 10:38 AM, Gurpreet Sachdeva > > > wrote: > > > > Hi, > > > > > > > > Any idea how to handle the unicode characters existing in an xml > file > > while > > > > parsing it. > > > > > > > > This is what I am doing: > > > > > > > > from xml.dom import minidom > > > > > > > > xmlObj = minidom.parse(fileobj) > > > > > > > > And the script throws an error because of some special characters > ['f > > > > (3gp????'] present in the xml file. Any suggestion/pointers would be > > > > appreciated > > > > > > > > Thanks and Regards, > > > > Gurpreet Singh > > > > _______________________________________________ > > > > BangPypers mailing list > > > > BangPypers at python.org > > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > > > > > > > > > > -- > > > -Anand > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > -- > > Thanks and Regards, > > Gurpreet Singh > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > -- > -Anand > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Thanks and Regards, Gurpreet Singh -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080319/b9efecc7/attachment.htm From jiten_shah_78 at yahoo.com Wed Mar 19 17:32:55 2008 From: jiten_shah_78 at yahoo.com (Jiten Shah) Date: Wed, 19 Mar 2008 09:32:55 -0700 (PDT) Subject: [BangPypers] HELP ON FORMATING OUTPUT Message-ID: <827456.93205.qm@web39503.mail.mud.yahoo.com> Dear Friends, I am new for python and new for this mailing list also My problem is i want to print 1156179 to -> 1,156,179.00 Can somebody help me. Jiten ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ From siddharta.lists at gmail.com Wed Mar 19 18:07:13 2008 From: siddharta.lists at gmail.com (Siddharta) Date: Wed, 19 Mar 2008 22:37:13 +0530 Subject: [BangPypers] HELP ON FORMATING OUTPUT In-Reply-To: <827456.93205.qm@web39503.mail.mud.yahoo.com> References: <827456.93205.qm@web39503.mail.mud.yahoo.com> Message-ID: <47E14841.6090105@gmail.com> Try the locale module - http://docs.python.org/tut/node13.html >>> import locale >>> locale.setlocale(locale.LC_ALL, 'English_United States.1252') 'English_United States.1252' >>> x = 1234567.8 >>> locale.format("%d", x, grouping=True) '1,234,567' -- Siddharta Govindaraj Jiten Shah wrote: > Dear Friends, > > I am new for python and new for this mailing list also > > My problem is i want to print > 1156179 to -> 1,156,179.00 > > Can somebody help me. > > Jiten > > > From gurpreet.sachdeva at gmail.com Thu Mar 20 06:27:46 2008 From: gurpreet.sachdeva at gmail.com (Gurpreet Sachdeva) Date: Thu, 20 Mar 2008 10:57:46 +0530 Subject: [BangPypers] Fwd: Handling unicode characters in xml.dom In-Reply-To: <8548c5f30803191118kb305168ndcf9491acda3e403@mail.gmail.com> References: <8548c5f30803172214h3e897568t16fc0d3874313fc0@mail.gmail.com> <8548c5f30803180052m54fa13c8jc472ac1513ead23d@mail.gmail.com> <8548c5f30803191118kb305168ndcf9491acda3e403@mail.gmail.com> Message-ID: Thanks Anand for your help. Forwarding your post to the group. Regards, Gurpreet Singh ---------- Forwarded message ---------- From: Anand Balachandran Pillai Date: Wed, Mar 19, 2008 at 11:48 PM Subject: Re: [BangPypers] Handling unicode characters in xml.dom To: Gurpreet Sachdeva Hi Gurpreet, The problem is that you have some junk characters in the file (mostly Japanese unicode, since the original file seems to be japanese), which are appearing as Ctrl characters in ascii encoding. When the parser tries to parse the file it interprets the first Ctrl character (^S) as a newline, so it thinks there is an extra break in the text and produces a "not well-formed token" error. The way to solve this is to decode and encode the file again in a different encoding than ascii. I tried iso-8859-1 decoding and unicode-escape encoding and it works. For this you need to use the services of the codecs module since default file objects in Python can only write ascii text. Here is the full code... --------------------------------------------- import codecs import xml.dom.minidom as mdom data =open('problem.xml').read() f = open('problem2.xml','w') e = codecs.EncodedFile(f, 'iso-8859-1','unicode-escape') e.write(data) e.close() data = open('problem2.xml').read() data = '\n'.join(data.split("\\r\\n")) open('problem2.xml','w').write(data) print mdom.parse('problem2.xml') -------------------------------------------------- The unicode-escape encoding interprets the characters and converts them to their hex equivalent, but it escapes newlines to the "\r\n" character. So we replace these chars again with "\n" by splitting data and joining it. The modified file is saved in problem2.xml . Btw, can you forward this to the list. I am on a slow connection hence using html interface to gmail and hence address completion is missing. HTH, --Anand On 3/19/08, Gurpreet Sachdeva wrote: > Hi Anand, > > Please find attached the xml file that contains the garbage characters. Is > there a way we can handle them? > > Thanks for your help. > Gurpreet > > On Tue, Mar 18, 2008 at 1:22 PM, Anand Balachandran Pillai < > abpillai at gmail.com> wrote: > > > Is the garbage CDATA or attribute data ? > > > > CDATA is like text and attribute > > is > > > > Can you pase the relevant part of the XML file here or if it is > > small enough, the complete XML file ? Send it directly to me > > since the list removes attachments. > > > > --Anand > > > > On Tue, Mar 18, 2008 at 11:05 AM, Gurpreet Sachdeva > > wrote: > > > > > > > > > Still the problem exists. > > > > > > - Gurpreet > > > > > > > > > > > > On Tue, Mar 18, 2008 at 10:44 AM, Anand Balachandran Pillai > > > wrote: > > > > > > > What is the encoding of your XML file ? i.e in the > > > > string ""?>, > > > > what is ? > > > > > > > > Make sure it is an encoding like utf-8 or iso-8859-1 > > > > which can help the parser to understand garbage > > > > chars. > > > > > > > > --Anand > > > > > > > > > > > > > > > > > > > > > > > > On Tue, Mar 18, 2008 at 10:38 AM, Gurpreet Sachdeva > > > > wrote: > > > > > Hi, > > > > > > > > > > Any idea how to handle the unicode characters existing in an xml > > file > > > while > > > > > parsing it. > > > > > > > > > > This is what I am doing: > > > > > > > > > > from xml.dom import minidom > > > > > > > > > > xmlObj = minidom.parse(fileobj) > > > > > > > > > > And the script throws an error because of some special characters > > ['f > > > > > (3gp????'] present in the xml file. Any suggestion/pointers would > be > > > > > appreciated > > > > > > > > > > Thanks and Regards, > > > > > Gurpreet Singh > > > > > _______________________________________________ > > > > > BangPypers mailing list > > > > > BangPypers at python.org > > > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > -Anand > > > > _______________________________________________ > > > > BangPypers mailing list > > > > BangPypers at python.org > > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > > > > > > -- > > > Thanks and Regards, > > > Gurpreet Singh > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > > > > -- > > -Anand > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Thanks and Regards, > Gurpreet Singh > -- -Anand -- Thanks and Regards, Gurpreet Singh -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080320/ebfcd186/attachment.htm From abpillai at gmail.com Thu Mar 20 07:29:51 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 20 Mar 2008 11:59:51 +0530 Subject: [BangPypers] Fwd: Handling unicode characters in xml.dom In-Reply-To: References: <8548c5f30803172214h3e897568t16fc0d3874313fc0@mail.gmail.com> <8548c5f30803180052m54fa13c8jc472ac1513ead23d@mail.gmail.com> <8548c5f30803191118kb305168ndcf9491acda3e403@mail.gmail.com> Message-ID: <8548c5f30803192329x6e7ee65am6cc86633c53b8f4a@mail.gmail.com> There seems to be quite a bit of confusion when it comes to Python and encodings. The following PEP discusses Python and Unicode and gives some insights. http://www.python.org/dev/peps/pep-0100/ With py3k this confusion should reduce very much since it unifies str and unicode types and reduces the encoding problem and uses a different type "bytes" for any encoded (binary) data. http://docs.python.org/dev/3.0/whatsnew/3.0.html --Anand On Thu, Mar 20, 2008 at 10:57 AM, Gurpreet Sachdeva wrote: > Thanks Anand for your help. Forwarding your post to the group. > > Regards, > Gurpreet Singh > > > > ---------- Forwarded message ---------- > From: Anand Balachandran Pillai > Date: Wed, Mar 19, 2008 at 11:48 PM > Subject: Re: [BangPypers] Handling unicode characters in xml.dom > To: Gurpreet Sachdeva > > > Hi Gurpreet, > > The problem is that you have some junk characters in the file > (mostly Japanese > unicode, since the original file seems to be japanese), which are appearing > as Ctrl characters in ascii encoding. When the parser tries to parse the > file > it interprets the first Ctrl character (^S) as a newline, so it thinks > there is an > extra break in the text and produces a "not well-formed token" error. > > The way to solve this is to decode and encode the file again in a > different > encoding than ascii. I tried iso-8859-1 decoding and unicode-escape > encoding > and it works. For this you need to use the services of the codecs module > since > default file objects in Python can only write ascii text. > > Here is the full code... > --------------------------------------------- > import codecs > import xml.dom.minidom as mdom > > data =open('problem.xml').read() > f = open('problem2.xml','w') > > e = codecs.EncodedFile(f, 'iso-8859-1','unicode-escape') > e.write(data) > e.close() > data = open('problem2.xml').read() > data = '\n'.join(data.split("\\r\\n")) > open('problem2.xml','w').write(data) > > print mdom.parse('problem2.xml') > -------------------------------------------------- > > The unicode-escape encoding interprets the characters and converts > them to their hex equivalent, but it escapes newlines to the "\r\n" > character. > So we replace these chars again with "\n" by splitting data and joining it. > > The modified file is saved in problem2.xml . > > Btw, can you forward this to the list. I am on a slow connection hence > using > html interface to gmail and hence address completion is missing. > > HTH, > > --Anand > > > > On 3/19/08, Gurpreet Sachdeva wrote: > > Hi Anand, > > > > Please find attached the xml file that contains the garbage characters. > Is > > there a way we can handle them? > > > > Thanks for your help. > > Gurpreet > > > > On Tue, Mar 18, 2008 at 1:22 PM, Anand Balachandran Pillai < > > abpillai at gmail.com> wrote: > > > > > Is the garbage CDATA or attribute data ? > > > > > > CDATA is like text and attribute > > > is > > > > > > Can you pase the relevant part of the XML file here or if it is > > > small enough, the complete XML file ? Send it directly to me > > > since the list removes attachments. > > > > > > --Anand > > > > > > On Tue, Mar 18, 2008 at 11:05 AM, Gurpreet Sachdeva > > > wrote: > > > > > > > > > > > > Still the problem exists. > > > > > > > > - Gurpreet > > > > > > > > > > > > > > > > On Tue, Mar 18, 2008 at 10:44 AM, Anand Balachandran Pillai > > > > wrote: > > > > > > > > > What is the encoding of your XML file ? i.e in the > > > > > string ""?>, > > > > > what is ? > > > > > > > > > > Make sure it is an encoding like utf-8 or iso-8859-1 > > > > > which can help the parser to understand garbage > > > > > chars. > > > > > > > > > > --Anand > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Tue, Mar 18, 2008 at 10:38 AM, Gurpreet Sachdeva > > > > > wrote: > > > > > > Hi, > > > > > > > > > > > > Any idea how to handle the unicode characters existing in an xml > > > file > > > > while > > > > > > parsing it. > > > > > > > > > > > > This is what I am doing: > > > > > > > > > > > > from xml.dom import minidom > > > > > > > > > > > > xmlObj = minidom.parse(fileobj) > > > > > > > > > > > > And the script throws an error because of some special characters > > > ['f > > > > > > (3gp????'] present in the xml file. Any suggestion/pointers would > > be > > > > > > appreciated > > > > > > > > > > > > Thanks and Regards, > > > > > > Gurpreet Singh > > > > > > _______________________________________________ > > > > > > BangPypers mailing list > > > > > > BangPypers at python.org > > > > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > -Anand > > > > > _______________________________________________ > > > > > BangPypers mailing list > > > > > BangPypers at python.org > > > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > > > > > > > > > > > -- > > > > Thanks and Regards, > > > > Gurpreet Singh > > > > _______________________________________________ > > > > BangPypers mailing list > > > > BangPypers at python.org > > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > > > > > > > > > > -- > > > -Anand > > > _______________________________________________ > > > BangPypers mailing list > > > BangPypers at python.org > > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > > > > -- > > Thanks and Regards, > > Gurpreet Singh > > > -- > -Anand > > > > -- > > Thanks and Regards, > Gurpreet Singh > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- -Anand From skpatel20 at hotmail.com Thu Mar 20 11:42:46 2008 From: skpatel20 at hotmail.com (Sanjaya Kumar Patel) Date: Thu, 20 Mar 2008 16:12:46 +0530 Subject: [BangPypers] Summer Projects on TurboGears Message-ID: Hi All, It seems TurboGears GSoC is offering some projects, and as I understood from the post, there are some nice rewards involved. Here is more details -> http://groups.google.co.in/group/turbogears/browse_thread/thread/dfdfdf9368b7d9ba Sanjay _________________________________________________________________ Post free property ads on Yello Classifieds now! www.yello.in http://ss1.richmedia.in/recurl.asp?pid=220 From srini at nanolets.in Sat Mar 22 07:10:25 2008 From: srini at nanolets.in (Nanolets nanolets) Date: Sat, 22 Mar 2008 11:40:25 +0530 Subject: [BangPypers] HELP ON FORMATING OUTPUT In-Reply-To: <827456.93205.qm@web39503.mail.mud.yahoo.com> References: <827456.93205.qm@web39503.mail.mud.yahoo.com> Message-ID: A stupid way to do this is x=123456789 x=str(x) n=len(x) s=n%3 outs=x[0:s] while ( s < n) : outs = outs + "," + x[s:s+3] s=s+3 print outs On 3/19/08, Jiten Shah wrote: > > Dear Friends, > > I am new for python and new for this mailing list also > > My problem is i want to print > 1156179 to -> 1,156,179.00 > > Can somebody help me. > > > Jiten > > > > > > > ____________________________________________________________________________________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080322/708ef42c/attachment.htm From rusticgeek at gmail.com Sat Mar 22 08:15:33 2008 From: rusticgeek at gmail.com (Sribabu) Date: Sat, 22 Mar 2008 03:15:33 -0400 Subject: [BangPypers] HELP ON FORMATING OUTPUT In-Reply-To: References: <827456.93205.qm@web39503.mail.mud.yahoo.com> Message-ID: <3bf0ba730803220015p4454b410t2d1f851da6f3ad41@mail.gmail.com> Hi Jiten I have probably a easier way via an import. here you go: import locale def number_format(number, grouping=0): return locale.format("%.*f", (grouping, number), True) regards, Sri On Sat, Mar 22, 2008 at 2:10 AM, Nanolets nanolets wrote: > A stupid way to do this is > > x=123456789 > x=str(x) > n=len(x) > s=n%3 > outs=x[0:s] > while ( s < n) : > outs = outs + "," + x[s:s+3] > s=s+3 > print outs > > > On 3/19/08, Jiten Shah wrote: > > > > Dear Friends, > > > > I am new for python and new for this mailing list also > > > > My problem is i want to print > > 1156179 to -> 1,156,179.00 > > > > Can somebody help me. > > > > > > Jiten > > > > > > > > > > > > > > ____________________________________________________________________________________ > > Be a better friend, newshound, and > > know-it-all with Yahoo! Mobile. Try it now. > > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > > _______________________________________________ > > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080322/1f0e2eea/attachment.htm From srini at nanolets.in Sat Mar 22 10:23:16 2008 From: srini at nanolets.in (Nanolets nanolets) Date: Sat, 22 Mar 2008 14:53:16 +0530 Subject: [BangPypers] HELP ON FORMATING OUTPUT In-Reply-To: <3bf0ba730803220015p4454b410t2d1f851da6f3ad41@mail.gmail.com> References: <827456.93205.qm@web39503.mail.mud.yahoo.com> <3bf0ba730803220015p4454b410t2d1f851da6f3ad41@mail.gmail.com> Message-ID: I was wondering how sri dug out this information. It turned to be fairly simple. Did a search in python site for "number formatting", it took me to the tutorial. Brief tour of Standard Library II and there it was. Thinking further it should have occurred that ofcourse python should have something for this already and in general it would have something to do with locale. Thanks sri Regards Srini. On Sat, Mar 22, 2008 at 12:45 PM, Sribabu wrote: > Hi Jiten > > I have probably a easier way via an import. > here you go: > > import locale > > def number_format(number, grouping=0): > return locale.format("%.*f", (grouping, number), True) > > regards, > Sri > > > On Sat, Mar 22, 2008 at 2:10 AM, Nanolets nanolets > wrote: > > > A stupid way to do this is > > > > x=123456789 > > x=str(x) > > n=len(x) > > s=n%3 > > outs=x[0:s] > > while ( s < n) : > > outs = outs + "," + x[s:s+3] > > s=s+3 > > print outs > > > > > > On 3/19/08, Jiten Shah wrote: > > > > > > Dear Friends, > > > > > > I am new for python and new for this mailing list also > > > > > > My problem is i want to print > > > 1156179 to -> 1,156,179.00 > > > > > > Can somebody help me. > > > > > > > > > Jiten > > > > > > > > > > > > > > > > > > > > > ____________________________________________________________________________________ > > > Be a better friend, newshound, and > > > know-it-all with Yahoo! Mobile. Try it now. > > > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > > > _______________________________________________ > > > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/bangpypers/attachments/20080322/a7e0185c/attachment.htm From supreet.sethi at gmail.com Mon Mar 31 04:02:34 2008 From: supreet.sethi at gmail.com (s|s) Date: Mon, 31 Mar 2008 07:32:34 +0530 Subject: [BangPypers] [ Help ] extracting SOAP version from server In-Reply-To: <549743.15914.qm@web94614.mail.in2.yahoo.com> References: <549743.15914.qm@web94614.mail.in2.yahoo.com> Message-ID: On Mon, Mar 17, 2008 at 6:37 PM, Senthil wrote: > Hi , > > i am using SOAPpy package for some client side work. > > I would like to knew the method exists, if any for extracting the versioin > of SOAP from the server using python or the SOAPpy package. > I don't know directly in SOAPpy how this could be accomplished. But functions in httplib [ http://docs.python.org/lib/module-httplib.html ] which is used by SOAPpy could be overridden to find server version. A simple way is to check for Content-Type header during the transaction. SOAP 1.1 uses text/xml SOAP 1.2 uses application/soap > Thanks in advnce, > Regards, > Senthilkumaran Sundaramurthi. > -- Supreet Sethi http://findmeajob.wordpress.com