From skpatel20 at hotmail.com Sat Nov 1 07:02:20 2008 From: skpatel20 at hotmail.com (Sanjaya Kumar Patel) Date: Sat, 1 Nov 2008 11:32:20 +0530 Subject: [BangPypers] FOSS Project for grabbing contacts from gmail, yahoo, rediff etc. Message-ID: Hi All, Glad to announce a python open source project named ContactGrabber to grab the contact emails from gmail, yahoo, rediff etc. The project is hosted at http://code.google.com/p/pycontactgrabber/ and is also available at cheeseshop. It is now working fine for 'gmail', 'yahoo' and 'rediff'. I am not a python grandmaster and hence would deeply wish somebody taking the project forward. Sanjay _________________________________________________________________ Want to explore the world? Visit MSN Travel for the best deals. http://in.msn.com/coxandkings -------------- next part -------------- An HTML attachment was scrubbed... URL: From arunpython at ymail.com Sat Nov 1 18:34:19 2008 From: arunpython at ymail.com (Arun Python) Date: Sat, 1 Nov 2008 23:04:19 +0530 (IST) Subject: [BangPypers] Suggest me for Desktop development Message-ID: <429135.51322.qm@web95011.mail.in2.yahoo.com> Hi all, I want to develop a desktop application program which runs in Win XP/Vista.? Kindly suggest me the right way to start with, since I am very new to Python and kindly suggest me the books that can guide me very clearly for novice programmers like me in python. Regards, Arun Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From iapain at yahoo.com Sat Nov 1 20:03:25 2008 From: iapain at yahoo.com (Deepak Thukral) Date: Sat, 1 Nov 2008 12:03:25 -0700 (PDT) Subject: [BangPypers] Suggest me for Desktop development In-Reply-To: <429135.51322.qm@web95011.mail.in2.yahoo.com> Message-ID: <771960.56369.qm@web33106.mail.mud.yahoo.com> > I want to develop a desktop application program which runs > in Win XP/Vista.? Kindly suggest me the right way to start > with, since I am very new to Python and kindly suggest me > the books that can guide me very clearly for novice > programmers like me in python. Tk/Tkinter or if you are looking for sophisticated GUI then wxPython is cool. Deepak Thukral From ramdas at developeriq.com Sat Nov 1 20:34:34 2008 From: ramdas at developeriq.com (Ramdas S) Date: Sun, 2 Nov 2008 01:04:34 +0530 Subject: [BangPypers] Suggest me for Desktop development In-Reply-To: <771960.56369.qm@web33106.mail.mud.yahoo.com> References: <429135.51322.qm@web95011.mail.in2.yahoo.com> <771960.56369.qm@web33106.mail.mud.yahoo.com> Message-ID: <6e38f9f00811011234i3083ec08s45cbe7a88a2df176@mail.gmail.com> Try IronPython if you are into a bit of .Net RS On Sun, Nov 2, 2008 at 12:33 AM, Deepak Thukral wrote: > > I want to develop a desktop application program which runs > > in Win XP/Vista. Kindly suggest me the right way to start > > with, since I am very new to Python and kindly suggest me > > the books that can guide me very clearly for novice > > programmers like me in python. > > Tk/Tkinter or if you are looking for sophisticated GUI then wxPython is > cool. > > Deepak Thukral > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- Ramdas S +91 9342 583 065 My Personal Blog: http://ramdas.diqtech.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From antonyjoseph89 at gmail.com Mon Nov 3 05:51:28 2008 From: antonyjoseph89 at gmail.com (Antony Joseph) Date: Mon, 3 Nov 2008 10:21:28 +0530 Subject: [BangPypers] BangPypers Digest, Vol 15, Issue 2 In-Reply-To: References: Message-ID: hi, For cross-platform GUI (Graphical User Interface) use wxPython . http://wxpython.org/OSCON2006/wxPython-nutshell-OSCON2006.pdf On Sun, Nov 2, 2008 at 4:30 PM, wrote: > Send BangPypers mailing list submissions to > bangpypers at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/bangpypers > or, via email, send a message with subject or body 'help' to > bangpypers-request at python.org > > You can reach the person managing the list at > bangpypers-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of BangPypers digest..." > > > Today's Topics: > > 1. Suggest me for Desktop development (Arun Python) > 2. Re: Suggest me for Desktop development (Deepak Thukral) > 3. Re: Suggest me for Desktop development (Ramdas S) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 1 Nov 2008 23:04:19 +0530 (IST) > From: Arun Python > Subject: [BangPypers] Suggest me for Desktop development > To: bangpypers at python.org > Message-ID: <429135.51322.qm at web95011.mail.in2.yahoo.com> > Content-Type: text/plain; charset="utf-8" > > Hi all, > > I want to develop a desktop application program which runs in Win > XP/Vista.? Kindly suggest me the right way to start with, since I am very > new to Python and kindly suggest me the books that can guide me very clearly > for novice programmers like me in python. > > > Regards, > > Arun > > > Add more friends to your messenger and enjoy! Go to > http://messenger.yahoo.com/invite/ > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mail.python.org/pipermail/bangpypers/attachments/20081101/f5ce059c/attachment-0001.htm > > > > ------------------------------ > > Message: 2 > Date: Sat, 1 Nov 2008 12:03:25 -0700 (PDT) > From: Deepak Thukral > Subject: Re: [BangPypers] Suggest me for Desktop development > To: Bangalore Python Users Group - India > Message-ID: <771960.56369.qm at web33106.mail.mud.yahoo.com> > Content-Type: text/plain; charset=iso-8859-1 > > > I want to develop a desktop application program which runs > > in Win XP/Vista.? Kindly suggest me the right way to start > > with, since I am very new to Python and kindly suggest me > > the books that can guide me very clearly for novice > > programmers like me in python. > > Tk/Tkinter or if you are looking for sophisticated GUI then wxPython is > cool. > > Deepak Thukral > > > > > > ------------------------------ > > Message: 3 > Date: Sun, 2 Nov 2008 01:04:34 +0530 > From: "Ramdas S" > Subject: Re: [BangPypers] Suggest me for Desktop development > To: iapain at yahoo.com, "Bangalore Python Users Group - India" > > Message-ID: > <6e38f9f00811011234i3083ec08s45cbe7a88a2df176 at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Try IronPython if you are into a bit of .Net > > RS > > On Sun, Nov 2, 2008 at 12:33 AM, Deepak Thukral wrote: > > > > I want to develop a desktop application program which runs > > > in Win XP/Vista. Kindly suggest me the right way to start > > > with, since I am very new to Python and kindly suggest me > > > the books that can guide me very clearly for novice > > > programmers like me in python. > > > > Tk/Tkinter or if you are looking for sophisticated GUI then wxPython is > > cool. > > > > Deepak Thukral > > > > > > > > _______________________________________________ > > BangPypers mailing list > > BangPypers at python.org > > http://mail.python.org/mailman/listinfo/bangpypers > > > > > > -- > Ramdas S > +91 9342 583 065 > My Personal Blog: http://ramdas.diqtech.com > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mail.python.org/pipermail/bangpypers/attachments/20081102/6ee8e951/attachment-0001.htm > > > > ------------------------------ > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > > End of BangPypers Digest, Vol 15, Issue 2 > ***************************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sridhar.ratna at gmail.com Mon Nov 3 17:33:24 2008 From: sridhar.ratna at gmail.com (Sridhar Ratnakumar) Date: Mon, 3 Nov 2008 08:33:24 -0800 Subject: [BangPypers] Suggest me for Desktop development In-Reply-To: <6e38f9f00811011234i3083ec08s45cbe7a88a2df176@mail.gmail.com> References: <429135.51322.qm@web95011.mail.in2.yahoo.com> <771960.56369.qm@web33106.mail.mud.yahoo.com> <6e38f9f00811011234i3083ec08s45cbe7a88a2df176@mail.gmail.com> Message-ID: <7c73a13a0811030833m37652c75rcebab878d531a03c@mail.gmail.com> IronPython is good for Windows-only apps. Here is a tutorial to get started - http://www.voidspace.org.uk/ironpython/winforms/index.shtml IronPython can be downloaded from http://www.codeplex.com/IronPython On Sat, Nov 1, 2008 at 11:34 AM, Ramdas S wrote: > Try IronPython if you are into a bit of .Net > > RS > > On Sun, Nov 2, 2008 at 12:33 AM, Deepak Thukral wrote: >> >> > I want to develop a desktop application program which runs >> > in Win XP/Vista. Kindly suggest me the right way to start >> > with, since I am very new to Python and kindly suggest me >> > the books that can guide me very clearly for novice >> > programmers like me in python. >> >> Tk/Tkinter or if you are looking for sophisticated GUI then wxPython is >> cool. >> >> Deepak Thukral >> >> >> >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers > > > > -- > Ramdas S > +91 9342 583 065 > My Personal Blog: http://ramdas.diqtech.com > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > From banibrata.dutta at gmail.com Mon Nov 3 17:45:13 2008 From: banibrata.dutta at gmail.com (Banibrata Dutta) Date: Mon, 3 Nov 2008 22:15:13 +0530 Subject: [BangPypers] Suggest me for Desktop development In-Reply-To: <7c73a13a0811030833m37652c75rcebab878d531a03c@mail.gmail.com> References: <429135.51322.qm@web95011.mail.in2.yahoo.com> <771960.56369.qm@web33106.mail.mud.yahoo.com> <6e38f9f00811011234i3083ec08s45cbe7a88a2df176@mail.gmail.com> <7c73a13a0811030833m37652c75rcebab878d531a03c@mail.gmail.com> Message-ID: <3de8e1f70811030845w32d97137ib6f89be5d0c392c9@mail.gmail.com> Can't it be extended to non-Windows platforms using Mono ? On Mon, Nov 3, 2008 at 10:03 PM, Sridhar Ratnakumar wrote: > IronPython is good for Windows-only apps. Here is a tutorial to get > started - http://www.voidspace.org.uk/ironpython/winforms/index.shtml > > IronPython can be downloaded from http://www.codeplex.com/IronPython > > On Sat, Nov 1, 2008 at 11:34 AM, Ramdas S wrote: > > Try IronPython if you are into a bit of .Net > > > > RS > > > > On Sun, Nov 2, 2008 at 12:33 AM, Deepak Thukral > wrote: > >> > >> > I want to develop a desktop application program which runs > >> > in Win XP/Vista. Kindly suggest me the right way to start > >> > with, since I am very new to Python and kindly suggest me > >> > the books that can guide me very clearly for novice > >> > programmers like me in python. > >> > >> Tk/Tkinter or if you are looking for sophisticated GUI then wxPython is > >> cool. > >> > >> Deepak Thukral > >> > >> > >> > >> _______________________________________________ > >> BangPypers mailing list > >> BangPypers at python.org > >> http://mail.python.org/mailman/listinfo/bangpypers > > > > > > > > -- > > Ramdas S > > +91 9342 583 065 > > My Personal Blog: http://ramdas.diqtech.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 > -- regards, Banibrata http://www.linkedin.com/in/bdutta http://octapod.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From iapain at yahoo.com Mon Nov 3 18:12:54 2008 From: iapain at yahoo.com (Deepak Thukral) Date: Mon, 3 Nov 2008 09:12:54 -0800 (PST) Subject: [BangPypers] Suggest me for Desktop development In-Reply-To: <3de8e1f70811030845w32d97137ib6f89be5d0c392c9@mail.gmail.com> Message-ID: <317149.6692.qm@web33107.mail.mud.yahoo.com> > Can't it be extended to non-Windows platforms using Mono With GTK# sure! IMO use Tkinter, its cool for small apps and if you have complex UI then use wxPython or pyGTK with CPython instead of using IronPython and JPython. From rajeev.sebastian at gmail.com Mon Nov 3 18:54:30 2008 From: rajeev.sebastian at gmail.com (Rajeev J Sebastian) Date: Mon, 3 Nov 2008 23:24:30 +0530 Subject: [BangPypers] Suggest me for Desktop development In-Reply-To: <317149.6692.qm@web33107.mail.mud.yahoo.com> References: <3de8e1f70811030845w32d97137ib6f89be5d0c392c9@mail.gmail.com> <317149.6692.qm@web33107.mail.mud.yahoo.com> Message-ID: <79a035420811030954k781752fdh349e349459928ab3@mail.gmail.com> On Mon, Nov 3, 2008 at 10:42 PM, Deepak Thukral wrote: >> Can't it be extended to non-Windows platforms using Mono > > With GTK# sure! IMO use Tkinter, its cool for small apps and if you have complex UI then use wxPython or pyGTK with CPython instead of using IronPython and JPython. ... or PyQt4 ... Regards Rajeev J Sebastian From praveen at mahiti.org Thu Nov 6 12:20:41 2008 From: praveen at mahiti.org (Praveen Kumar) Date: Thu, 6 Nov 2008 16:50:41 +0530 Subject: [BangPypers] file save from python script Message-ID: <6f7fd6e90811060320s6026524bm1e419e0e9978dd1e@mail.gmail.com> Dear all, I want to save the file on filebased system. i am using urllib here i tried with this code *import urllib # fill these in user='admin' password='admin1' addfileurl='http://localhost:8080/starinstance/bin/manage_addFile' useragent="upload.py/0.1" filename='/home/praveen/Desktop/text.jpeg' filetitle='a nice test picture' class MyUrlOpener(urllib.FancyURLopener): def prompt_user_passwd(self, host, realm): return (user,password) def __init__(self, *args): self.version = useragent urllib.FancyURLopener.__init__(self, *args) def main(): # use authentication and set the user agent urllib._urlopener = MyUrlOpener() # read the contents of filename into filebody f=open(filename) filebody=f.read() f.close # urlencode the id, title and file params = urllib.urlencode({'id': filename, 'title':filetitle, 'file':filebody}) # send the file to zope f=urllib.urlopen(addfileurl, params) if __name__ == '__main__': main()* when i compile this file with simple python demo.py it gives me error Traceback (most recent call last): File "demo.py", line 36, in ? main() File "demo.py", line 33, in main f=urllib.urlopen(addfileurl, params) File "/usr/lib/python2.4/urllib.py", line 84, in urlopen return opener.open(url, data) File "/usr/lib/python2.4/urllib.py", line 192, in open return getattr(self, name)(url, data) File "/usr/lib/python2.4/urllib.py", line 272, in open_http import httplib File "/usr/lib/python2.4/httplib.py", line 70, in ? import mimetools File "/usr/lib/python2.4/mimetools.py", line 6, in ? import tempfile File "/usr/lib/python2.4/tempfile.py", line 33, in ? from random import Random as _Random File "/usr/lib/python2.4/random.py", line 43, in ? from math import log as _log, exp as _exp, pi as _pi, e as _e ImportError: /usr/lib/python2.4/lib-dynload/math.so: undefined symbol: PyFPE_jbuf so i compiled with this command *python2.4 demo.py* it does not give any error but it does not give me output to when i check my directory where i am trying to save my jpeg file * http://localhost:8080/starinstance/bin/manage_addFile *there i do not find that file it means it is not able to store that file. i do not know what i am trying to do..could any one please give me idea how may i store the file on file system. i created a html page
Id:

Name:

Keywords:




once if user select any file it should store to specific location * http://localhost:8080/starinstance/bin/manage_addFile *Any suggestion will be appreciable Thanks. -- Praveen Kumar Software Engineer Mahiti Infotech Pvt. Ltd. # 33-34, Hennur Cross Hennur Main Road Bangalore, India - 560043 Mobile: +91 9343297314 +91 9739854134 http://www.mahiti.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From ramkrsna at gmail.com Thu Nov 6 13:22:49 2008 From: ramkrsna at gmail.com (Ramakrishna Reddy) Date: Thu, 6 Nov 2008 17:52:49 +0530 Subject: [BangPypers] Python and 5 Euro a.k.a How to make Money with Free Software Message-ID: http://pythonide.blogspot.com/2008/10/how-to-make-money-with-free-software.html The Dutch Ministry of Finance organized an architecture competition for which a selected group of architectural offices (unstudio, nox, ...) and artists were invited, including myself. The goal of the competition was not to design a building, but the new 5 euro commemorative coin with the theme 'Netherlands and Architecture'. The winner will be rewarded with a nice price, but most of all with the honor: his design will be realized and will be a legal coin within the Netherlands. I approached the subject 'Netherlands and Architecture' from two points of view. On one hand I paid tribute to the rich Dutch architecture history and on the other hand to the contemporary quality of Dutch architecture. These form also the two sides of my coin. Traditionally the front of the coin needs to portray the queen, while the back side displays the value of the coin ......... -- Ramakrishna Reddy GPG Key ID:31FF0090 Fingerprint = 18D7 3FC1 784B B57F C08F 32B9 4496 B2A1 31FF 0090 From iapain at yahoo.com Thu Nov 6 15:05:37 2008 From: iapain at yahoo.com (Deepak Thukral) Date: Thu, 6 Nov 2008 06:05:37 -0800 (PST) Subject: [BangPypers] file save from python script In-Reply-To: <6f7fd6e90811060320s6026524bm1e419e0e9978dd1e@mail.gmail.com> Message-ID: <224510.64262.qm@web33103.mail.mud.yahoo.com> > I want to save the file on filebased system. i am using > urllib OK > when i compile this file with simple python demo.py it Remember there in Python compile time is actually a Runtime. > ImportError: /usr/lib/python2.4/lib-dynload/math.so: > undefined symbol: > PyFPE_jbuf Probably its problem with your Python distribution. Try importing the modules which you are using in your script from httplib/urlib. > but it does not give me output to when i check my directory use logging module and log your all events its easy to debug web apps using logging module. Especially when you cannot print. Also check your webserver have permission to write into that folder, where you are expecting file. Cheers, Deepak Thukral From gardsted at yahoo.com Thu Nov 6 15:19:36 2008 From: gardsted at yahoo.com (Jørgen Jørgensen) Date: Thu, 6 Nov 2008 06:19:36 -0800 (PST) Subject: [BangPypers] file save from python script Message-ID: <81949.16427.qm@web39703.mail.mud.yahoo.com> Hello Praween Kumar - I would make a pythonscript on the zope like'locahost:8080/starinstance/myscript', taking 3 parameters, id, titleand file. remember to give it manager proxy rights (proxy in top of python scriptedit screen, chose manager) script should be something like: """ container['bin'].manage_addFile(id=id, title=title, file=file) """ I havent tested, sorry;-), but at least the direction should besomething like this. then change addfileurl to: addfileurl='http://localhost:8080/starinstance/myscript' kind regards jorgen / denmark Praveen Kumar wrote:Dear all, I want to save the file on filebased system. i am using urllib here i tried with this code import urllib # fill these in user='admin' password='admin1' addfileurl='http://localhost:8080/starinstance/bin/manage_addFile' useragent="upload.py/0.1" filename='/home/praveen/Desktop/text.jpeg' filetitle='a nice test picture' class MyUrlOpener(urllib.FancyURLopener): def prompt_user_passwd(self, host, realm): return (user,password) def __init__(self, *args): self.version = useragent urllib.FancyURLopener.__init__(self,*args) def main(): # use authentication and set the user agent urllib._urlopener = MyUrlOpener() # read the contents of filename into filebody f=open(filename) filebody=f.read() f.close # urlencode the id, title and file params = urllib.urlencode({'id': filename, 'title':filetitle, 'file':filebody}) # send the file to zope f=urllib.urlopen(addfileurl, params) if __name__ == '__main__': main() when i compile this file with simple python demo.py it gives me error Traceback (most recent call last): File "demo.py", line 36, in ? main() File "demo.py", line 33, in main f=urllib.urlopen(addfileurl, params) File "/usr/lib/python2.4/urllib.py", line 84, in urlopen return opener.open(url, data) File "/usr/lib/python2.4/urllib.py", line 192, in open return getattr(self, name)(url, data) File "/usr/lib/python2.4/urllib.py", line 272, in open_http import httplib File "/usr/lib/python2.4/httplib.py", line 70, in ? import mimetools File "/usr/lib/python2.4/mimetools.py", line 6, in ? import tempfile File "/usr/lib/python2.4/tempfile.py", line 33, in ? from random import Random as _Random File "/usr/lib/python2.4/random.py", line 43, in ? from math import log as _log, exp as _exp, pi as _pi, e as _e ImportError: /usr/lib/python2.4/lib-dynload/math.so: undefined symbol:PyFPE_jbuf so i compiled with this command python2.4demo.py it does not give any error but it does not give me output to when i check my directory where i amtrying to save my jpeg file http://localhost:8080/starinstance/bin/manage_addFile there i do not find that file it means it is not able to storethat file. i do not know what i am trying to do..could any one please give me ideahow may i store the file on file system. i created a html page
Id:

Name:

Keywords:




once if user select any file it should store to specific location http://localhost:8080/starinstance/bin/manage_addFile Any suggestion will be appreciable Thanks. -- Praveen Kumar Software Engineer Mahiti Infotech Pvt. Ltd. # 33-34, Hennur Cross Hennur Main Road Bangalore, India - 560043 Mobile: +91 9343297314 +91 9739854134 http://www.mahiti.org --------------------------------- _______________________________________________BangPypers mailing listBangPypers at python.orghttp://mail.python.org/mailman/listinfo/bangpypers -------------- next part -------------- An HTML attachment was scrubbed... URL: From abpillai at gmail.com Fri Nov 7 06:49:48 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 7 Nov 2008 11:19:48 +0530 Subject: [BangPypers] Python and 5 Euro a.k.a How to make Money with Free Software In-Reply-To: References: Message-ID: <8548c5f30811062149n222475c8h20b2290849cb62f6@mail.gmail.com> On Thu, Nov 6, 2008 at 5:52 PM, Ramakrishna Reddy wrote: > http://pythonide.blogspot.com/2008/10/how-to-make-money-with-free-software.html > > > The Dutch Ministry of Finance organized an architecture competition > for which a selected group of architectural offices (unstudio, nox, > ...) and artists were invited, including myself. The goal of the > competition was not to design a building, but the new 5 euro > commemorative coin with the theme 'Netherlands and Architecture'. The > winner will be rewarded with a nice price, but most of all with the > honor: his design will be realized and will be a legal coin within the > Netherlands. > > I approached the subject 'Netherlands and Architecture' from two > points of view. On one hand I paid tribute to the rich Dutch > architecture history and on the other hand to the contemporary quality > of Dutch architecture. These form also the two sides of my coin. > Traditionally the front of the coin needs to portray the queen, while > the back side displays the value of the coin ......... Yes, this is a great example of innovative use of ideas combined with great skills in the selection, creation and application of open source software. It is really an achievement for the creator Stani and also for free software like GIMP, Python etc in that he was able to create such a masterpiece from combining simple tools - the Unix/FOSS philosophy. I hope FSF and PSF take notice of this and use this in their web pages as a great example of the power of such tools. Also note that this is the same guy who is the creator of SPE (Stani's Python Editor), a really good Python editor written in Python. Need to truly appreciate his multi-talented genius. > > > -- > Ramakrishna Reddy GPG > Key ID:31FF0090 > Fingerprint = 18D7 3FC1 784B B57F C08F 32B9 4496 B2A1 31FF 0090 > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > Regards, -- -Anand From abpillai at gmail.com Fri Nov 7 06:52:38 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Fri, 7 Nov 2008 11:22:38 +0530 Subject: [BangPypers] Python and 5 Euro a.k.a How to make Money with Free Software In-Reply-To: <8548c5f30811062149n222475c8h20b2290849cb62f6@mail.gmail.com> References: <8548c5f30811062149n222475c8h20b2290849cb62f6@mail.gmail.com> Message-ID: <8548c5f30811062152i7ad77ad6k1b1ef54891f269d5@mail.gmail.com> On a lighter note, a more apt title for his post would have been "How to mint money with free software" ;) On Fri, Nov 7, 2008 at 11:19 AM, Anand Balachandran Pillai wrote: > On Thu, Nov 6, 2008 at 5:52 PM, Ramakrishna Reddy wrote: >> http://pythonide.blogspot.com/2008/10/how-to-make-money-with-free-software.html >> >> >> The Dutch Ministry of Finance organized an architecture competition >> for which a selected group of architectural offices (unstudio, nox, >> ...) and artists were invited, including myself. The goal of the >> competition was not to design a building, but the new 5 euro >> commemorative coin with the theme 'Netherlands and Architecture'. The >> winner will be rewarded with a nice price, but most of all with the >> honor: his design will be realized and will be a legal coin within the >> Netherlands. >> >> I approached the subject 'Netherlands and Architecture' from two >> points of view. On one hand I paid tribute to the rich Dutch >> architecture history and on the other hand to the contemporary quality >> of Dutch architecture. These form also the two sides of my coin. >> Traditionally the front of the coin needs to portray the queen, while >> the back side displays the value of the coin ......... > > -- > -Anand > Regards, -- -Anand From praveen at mahiti.org Fri Nov 7 08:01:50 2008 From: praveen at mahiti.org (Praveen Kumar) Date: Fri, 7 Nov 2008 12:31:50 +0530 Subject: [BangPypers] file save from python script In-Reply-To: <81949.16427.qm@web39703.mail.mud.yahoo.com> References: <81949.16427.qm@web39703.mail.mud.yahoo.com> Message-ID: <6f7fd6e90811062301q36f61e78uf76543b4b3e81201@mail.gmail.com> Hi First of all i would like to thank you for giving me some idea.. As Jorgen told i did in same way Hi Jorgen I created a python script in zope instance to upload multiple files and its working successfully.. but its storing the file inside custom folder as we know context always refer to current location i mean our-instance/custom but when i am giving container['bin'] its giving me 'bin' key error. i want to save that file inside my instance for example myzope-instance/mydir/** is any one have any idea *REQUEST=context.REQUEST sentFiles = {} for key in context.REQUEST.keys(): # getting all the ids if key[:5]=='file.' and key[-3:]=='.id': # we finding id file.XXX.id sentFiles[REQUEST[key]]='' for key in context.REQUEST.keys(): if key[:5]=='file.' and key[-3:]!='.id': #we've got a file #found its id and make sure file exists if sentFiles.has_key(REQUEST[key+'.id']) and REQUEST[key].filename: sentFiles[REQUEST[key+'.id']]=REQUEST[key] else: del sentFiles[REQUEST[key+'.id']] #remove keys that dont have files for k in sentFiles.keys(): **context.manage_addFile(k,sentFiles[k])* * container['bin'].mydir.manage_addFile(k,sentFiles[k]) return str(len(sentFiles)) + ' files has been uploaded successfully'* On Thu, Nov 6, 2008 at 7:49 PM, J?rgen J?rgensen wrote: > Hello Praween Kumar - > I would make a pythonscript on the zope like > 'locahost:8080/starinstance/myscript', taking 3 parameters, id, title and > file. > remember to give it manager proxy rights (proxy in top of python script > edit screen, chose manager) > script should be something like: > """ > container['bin'].manage_addFile(id=id, title=title, file=file) > """ > I havent tested, sorry;-), but at least the direction should be something > like this. > then change addfileurl to: > > *addfileurl='http://localhost:8080/starinstance/myscript > '* > > kind regards jorgen / denmark > > > Praveen Kumar wrote: > > Dear all, > I want to save the file on filebased system. i am using urllib > > here i tried with this code > > *import urllib > > # fill these in > user='admin' > password='admin1' > addfileurl='http://localhost:8080/starinstance/bin/manage_addFile' > useragent="upload.py/0.1" > filename='/home/praveen/Desktop/text.jpeg' > filetitle='a nice test picture' > > class MyUrlOpener(urllib.FancyURLopener): > def prompt_user_passwd(self, host, realm): > return (user,password) > def __init__(self, *args): > self.version = useragent > urllib.FancyURLopener.__init__(self, *args) > > def main(): > # use authentication and set the user agent > urllib._urlopener = MyUrlOpener() > > # read the contents of filename into filebody > f=open(filename) > filebody=f.read() > f.close > > # urlencode the id, title and file > params = urllib.urlencode({'id': filename, > 'title':filetitle, > 'file':filebody}) > > # send the file to zope > f=urllib.urlopen(addfileurl, params) > > if __name__ == '__main__': > main()* > > when i compile this file with simple python demo.py it gives me error > Traceback (most recent call last): > File "demo.py", line 36, in ? > main() > File "demo.py", line 33, in main > f=urllib.urlopen(addfileurl, params) > File "/usr/lib/python2.4/urllib.py", line 84, in urlopen > return opener.open(url, data) > File "/usr/lib/python2.4/urllib.py", line 192, in open > return getattr(self, name)(url, data) > File "/usr/lib/python2.4/urllib.py", line 272, in open_http > import httplib > File "/usr/lib/python2.4/httplib.py", line 70, in ? > import mimetools > File "/usr/lib/python2.4/mimetools.py", line 6, in ? > import tempfile > File "/usr/lib/python2.4/tempfile.py", line 33, in ? > from random import Random as _Random > File "/usr/lib/python2.4/random.py", line 43, in ? > from math import log as _log, exp as _exp, pi as _pi, e as _e > ImportError: /usr/lib/python2.4/lib-dynload/math.so: undefined symbol: > PyFPE_jbuf > > so i compiled with this command *python2.4 demo.py* it does not give any > error > but it does not give me output to when i check my directory where i am > trying to save my jpeg file * > http://localhost:8080/starinstance/bin/manage_addFile *there i do not find > that file it means it is not able to store that file. > > i do not know what i am trying to do..could any one please give me idea how > may i store the file on file system. > i created a html page >
ACTION=""> >
> > Id:

> Name:

> Keywords:

>

>
>
>
> once if user select any file it should store to specific location * > http://localhost:8080/starinstance/bin/manage_addFile > > *Any suggestion will be appreciable > > Thanks. > -- > Praveen Kumar > Software Engineer > Mahiti Infotech Pvt. Ltd. > # 33-34, Hennur Cross > Hennur Main Road > Bangalore, India - 560043 > Mobile: +91 9343297314 > +91 9739854134 > http://www.mahiti.org > > ------------------------------ > > _______________________________________________ > BangPypers mailing listBangPypers at python.orghttp://mail.python.org/mailman/listinfo/bangpypers > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- Praveen Kumar Software Engineer Mahiti Infotech Pvt. Ltd. # 33-34, Hennur Cross Hennur Main Road Bangalore, India - 560043 Mobile: +91 9343297314 +91 9739854134 http://www.mahiti.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From ataulla at gmail.com Fri Nov 7 12:19:17 2008 From: ataulla at gmail.com (Ataulla S H) Date: Fri, 7 Nov 2008 16:49:17 +0530 Subject: [BangPypers] file save from python script In-Reply-To: <6f7fd6e90811062301q36f61e78uf76543b4b3e81201@mail.gmail.com> References: <81949.16427.qm@web39703.mail.mud.yahoo.com> <6f7fd6e90811062301q36f61e78uf76543b4b3e81201@mail.gmail.com> Message-ID: hi praveen try this myrepo = getattr(context,*'*mydir*'*) myrepo.manage_addFile(id=id, title=title, file=file) On Fri, Nov 7, 2008 at 12:31 PM, Praveen Kumar wrote: > Hi First of all i would like to thank you for giving me some idea.. > As Jorgen told i did in same way > Hi Jorgen > I created a python script in zope instance to upload multiple files and its > working successfully.. > but its storing the file inside custom folder as we know context always > refer to current location i mean our-instance/custom but when i am giving > container['bin'] its giving me 'bin' key error. i want to save that file > inside my instance for example > > myzope-instance/mydir/** is any one have any idea > > *REQUEST=context.REQUEST > sentFiles = {} > for key in context.REQUEST.keys(): # getting all the ids > if key[:5]=='file.' and key[-3:]=='.id': # we finding id file.XXX.id > sentFiles[REQUEST[key]]='' > > for key in context.REQUEST.keys(): > if key[:5]=='file.' and key[-3:]!='.id': #we've got a file > #found its id and make sure file exists > if sentFiles.has_key(REQUEST[key+'.id']) and REQUEST[key].filename: > sentFiles[REQUEST[key+'.id']]=REQUEST[key] > else: > del sentFiles[REQUEST[key+'.id']] #remove keys that dont > have files > > for k in sentFiles.keys(): > **context.manage_addFile(k,sentFiles[k])* > * container['bin'].mydir.manage_addFile(k,sentFiles[k]) > > return str(len(sentFiles)) + ' files has been uploaded successfully'* > > > > On Thu, Nov 6, 2008 at 7:49 PM, J?rgen J?rgensen wrote: > >> Hello Praween Kumar - >> I would make a pythonscript on the zope like >> 'locahost:8080/starinstance/myscript', taking 3 parameters, id, title and >> file. >> remember to give it manager proxy rights (proxy in top of python script >> edit screen, chose manager) >> script should be something like: >> """ >> container['bin'].manage_addFile(id=id, title=title, file=file) >> """ >> I havent tested, sorry;-), but at least the direction should be something >> like this. >> then change addfileurl to: >> >> *addfileurl='http://localhost:8080/starinstance/myscript >> '* >> >> kind regards jorgen / denmark >> >> >> Praveen Kumar wrote: >> >> Dear all, >> I want to save the file on filebased system. i am using urllib >> >> here i tried with this code >> >> *import urllib >> >> # fill these in >> user='admin' >> password='admin1' >> addfileurl='http://localhost:8080/starinstance/bin/manage_addFile' >> useragent="upload.py/0.1" >> filename='/home/praveen/Desktop/text.jpeg' >> filetitle='a nice test picture' >> >> class MyUrlOpener(urllib.FancyURLopener): >> def prompt_user_passwd(self, host, realm): >> return (user,password) >> def __init__(self, *args): >> self.version = useragent >> urllib.FancyURLopener.__init__(self, *args) >> >> def main(): >> # use authentication and set the user agent >> urllib._urlopener = MyUrlOpener() >> >> # read the contents of filename into filebody >> f=open(filename) >> filebody=f.read() >> f.close >> >> # urlencode the id, title and file >> params = urllib.urlencode({'id': filename, >> 'title':filetitle, >> 'file':filebody}) >> >> # send the file to zope >> f=urllib.urlopen(addfileurl, params) >> >> if __name__ == '__main__': >> main()* >> >> when i compile this file with simple python demo.py it gives me error >> Traceback (most recent call last): >> File "demo.py", line 36, in ? >> main() >> File "demo.py", line 33, in main >> f=urllib.urlopen(addfileurl, params) >> File "/usr/lib/python2.4/urllib.py", line 84, in urlopen >> return opener.open(url, data) >> File "/usr/lib/python2.4/urllib.py", line 192, in open >> return getattr(self, name)(url, data) >> File "/usr/lib/python2.4/urllib.py", line 272, in open_http >> import httplib >> File "/usr/lib/python2.4/httplib.py", line 70, in ? >> import mimetools >> File "/usr/lib/python2.4/mimetools.py", line 6, in ? >> import tempfile >> File "/usr/lib/python2.4/tempfile.py", line 33, in ? >> from random import Random as _Random >> File "/usr/lib/python2.4/random.py", line 43, in ? >> from math import log as _log, exp as _exp, pi as _pi, e as _e >> ImportError: /usr/lib/python2.4/lib-dynload/math.so: undefined symbol: >> PyFPE_jbuf >> >> so i compiled with this command *python2.4 demo.py* it does not give any >> error >> but it does not give me output to when i check my directory where i am >> trying to save my jpeg file * >> http://localhost:8080/starinstance/bin/manage_addFile *there i do not >> find that file it means it is not able to store that file. >> >> i do not know what i am trying to do..could any one please give me idea >> how may i store the file on file system. >> i created a html page >>
> ACTION=""> >>
>> >> Id:

>> Name:

>> Keywords:> id="keywords"/>

>>

>>
>>
>>
>> once if user select any file it should store to specific location * >> http://localhost:8080/starinstance/bin/manage_addFile >> >> *Any suggestion will be appreciable >> >> Thanks. >> -- >> Praveen Kumar >> Software Engineer >> Mahiti Infotech Pvt. Ltd. >> # 33-34, Hennur Cross >> Hennur Main Road >> Bangalore, India - 560043 >> Mobile: +91 9343297314 >> +91 9739854134 >> http://www.mahiti.org >> >> ------------------------------ >> >> _______________________________________________ >> BangPypers mailing listBangPypers at python.orghttp://mail.python.org/mailman/listinfo/bangpypers >> >> >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> >> > > > -- > Praveen Kumar > Software Engineer > Mahiti Infotech Pvt. Ltd. > # 33-34, Hennur Cross > Hennur Main Road > Bangalore, India - 560043 > Mobile: +91 9343297314 > +91 9739854134 > http://www.mahiti.org > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- Ataulla SH web:www.kring.com personal blog:www.ataulla.objectis.net KRING Technologies India Pvt. Ltd. 1st Floor, Tower B, Infinity Towers, DLF II, Gurgaon-122 002 -------------- next part -------------- An HTML attachment was scrubbed... URL: From praveen at mahiti.org Fri Nov 7 13:13:36 2008 From: praveen at mahiti.org (Praveen Kumar) Date: Fri, 7 Nov 2008 17:43:36 +0530 Subject: [BangPypers] file save from python script In-Reply-To: References: <81949.16427.qm@web39703.mail.mud.yahoo.com> <6f7fd6e90811062301q36f61e78uf76543b4b3e81201@mail.gmail.com> Message-ID: <6f7fd6e90811070413l782e66f4kbcffa73e7d529328@mail.gmail.com> Hi Attaullah thank you so much. I tried that one too but that file is storing in data.fs which i do not want. i want to store my file to be physically stored. so for that i am trying to write a python script. i have written many script but could not get succeed #!/usr/local/bin/python """This demonstrates a minimal http upload cgi. This allows a user to upload up to three files at once. It is trivial to change the number of files uploaded. This script has security risks. A user could attempt to fill a disk partition with endless uploads. If you have a system open to the public you would obviously want to limit the size and number of files written to the disk. *""" import cgi import cgitb; cgitb.enable() import os, sys UPLOAD_DIR = "/home/praveen/Desktop/UPLOAD" def save_uploaded_file (form_field, upload_dir): """This saves a file uploaded by an HTML form. The form_field is the name of the file input field from the form. For example, the following form_field would be "file_1": The upload_dir is the directory where the file will be written. If no file was uploaded or if the field does not exist then this does nothing. """ form = cgi.FieldStorage() ///when i tried to print form field its returning None if not form.has_key(form_field): return fileitem = form[form_field] if not fileitem.file: return fout = file (os.path.join(upload_dir, fileitem.filename), 'wb') while 1: chunk = fileitem.file.read(100000) if not chunk: break fout.write (chunk) fout.close() save_uploaded_file ("/home/praveen/Desktop/1.html", UPLOAD_DIR)* this script is not giving me error.. Is any one know script to save the file physically on the particluar system.. suppose i have file in my Desktop and i have one interface(html page with file text field) which provide to select you file and move to another location /home/praveen/Desktop Thanks On Fri, Nov 7, 2008 at 4:49 PM, Ataulla S H wrote: > hi praveen try this > > myrepo = getattr(context,*'*mydir*'*) > myrepo.manage_addFile(id=id, title=title, file=file) > > > On Fri, Nov 7, 2008 at 12:31 PM, Praveen Kumar wrote: > >> Hi First of all i would like to thank you for giving me some idea.. >> As Jorgen told i did in same way >> Hi Jorgen >> I created a python script in zope instance to upload multiple files and >> its working successfully.. >> but its storing the file inside custom folder as we know context always >> refer to current location i mean our-instance/custom but when i am giving >> container['bin'] its giving me 'bin' key error. i want to save that file >> inside my instance for example >> >> myzope-instance/mydir/** is any one have any idea >> >> *REQUEST=context.REQUEST >> sentFiles = {} >> for key in context.REQUEST.keys(): # getting all the ids >> if key[:5]=='file.' and key[-3:]=='.id': # we finding id >> file.XXX.id >> sentFiles[REQUEST[key]]='' >> >> for key in context.REQUEST.keys(): >> if key[:5]=='file.' and key[-3:]!='.id': #we've got a file >> #found its id and make sure file exists >> if sentFiles.has_key(REQUEST[key+'.id']) and >> REQUEST[key].filename: >> sentFiles[REQUEST[key+'.id']]=REQUEST[key] >> else: >> del sentFiles[REQUEST[key+'.id']] #remove keys that dont >> have files >> >> for k in sentFiles.keys(): >> **context.manage_addFile(k,sentFiles[k])* >> * container['bin'].mydir.manage_addFile(k,sentFiles[k]) >> >> return str(len(sentFiles)) + ' files has been uploaded successfully'* >> >> >> >> On Thu, Nov 6, 2008 at 7:49 PM, J?rgen J?rgensen wrote: >> >>> Hello Praween Kumar - >>> I would make a pythonscript on the zope like >>> 'locahost:8080/starinstance/myscript', taking 3 parameters, id, title and >>> file. >>> remember to give it manager proxy rights (proxy in top of python script >>> edit screen, chose manager) >>> script should be something like: >>> """ >>> container['bin'].manage_addFile(id=id, title=title, file=file) >>> """ >>> I havent tested, sorry;-), but at least the direction should be something >>> like this. >>> then change addfileurl to: >>> >>> *addfileurl='http://localhost:8080/starinstance/myscript >>> '* >>> >>> kind regards jorgen / denmark >>> >>> >>> Praveen Kumar wrote: >>> >>> Dear all, >>> I want to save the file on filebased system. i am using urllib >>> >>> here i tried with this code >>> >>> *import urllib >>> >>> # fill these in >>> user='admin' >>> password='admin1' >>> addfileurl='http://localhost:8080/starinstance/bin/manage_addFile' >>> useragent="upload.py/0.1" >>> filename='/home/praveen/Desktop/text.jpeg' >>> filetitle='a nice test picture' >>> >>> class MyUrlOpener(urllib.FancyURLopener): >>> def prompt_user_passwd(self, host, realm): >>> return (user,password) >>> def __init__(self, *args): >>> self.version = useragent >>> urllib.FancyURLopener.__init__(self, *args) >>> >>> def main(): >>> # use authentication and set the user agent >>> urllib._urlopener = MyUrlOpener() >>> >>> # read the contents of filename into filebody >>> f=open(filename) >>> filebody=f.read() >>> f.close >>> >>> # urlencode the id, title and file >>> params = urllib.urlencode({'id': filename, >>> 'title':filetitle, >>> 'file':filebody}) >>> >>> # send the file to zope >>> f=urllib.urlopen(addfileurl, params) >>> >>> if __name__ == '__main__': >>> main()* >>> >>> when i compile this file with simple python demo.py it gives me error >>> Traceback (most recent call last): >>> File "demo.py", line 36, in ? >>> main() >>> File "demo.py", line 33, in main >>> f=urllib.urlopen(addfileurl, params) >>> File "/usr/lib/python2.4/urllib.py", line 84, in urlopen >>> return opener.open(url, data) >>> File "/usr/lib/python2.4/urllib.py", line 192, in open >>> return getattr(self, name)(url, data) >>> File "/usr/lib/python2.4/urllib.py", line 272, in open_http >>> import httplib >>> File "/usr/lib/python2.4/httplib.py", line 70, in ? >>> import mimetools >>> File "/usr/lib/python2.4/mimetools.py", line 6, in ? >>> import tempfile >>> File "/usr/lib/python2.4/tempfile.py", line 33, in ? >>> from random import Random as _Random >>> File "/usr/lib/python2.4/random.py", line 43, in ? >>> from math import log as _log, exp as _exp, pi as _pi, e as _e >>> ImportError: /usr/lib/python2.4/lib-dynload/math.so: undefined symbol: >>> PyFPE_jbuf >>> >>> so i compiled with this command *python2.4 demo.py* it does not give any >>> error >>> but it does not give me output to when i check my directory where i am >>> trying to save my jpeg file * >>> http://localhost:8080/starinstance/bin/manage_addFile *there i do not >>> find that file it means it is not able to store that file. >>> >>> i do not know what i am trying to do..could any one please give me idea >>> how may i store the file on file system. >>> i created a html page >>>
>> ACTION=""> >>>
>>> >>> Id:

>>> Name:

>>> Keywords:>> id="keywords"/>

>>>

>>>
>>>
>>>
>>> once if user select any file it should store to specific location * >>> http://localhost:8080/starinstance/bin/manage_addFile >>> >>> *Any suggestion will be appreciable >>> >>> Thanks. >>> -- >>> Praveen Kumar >>> Software Engineer >>> Mahiti Infotech Pvt. Ltd. >>> # 33-34, Hennur Cross >>> Hennur Main Road >>> Bangalore, India - 560043 >>> Mobile: +91 9343297314 >>> +91 9739854134 >>> http://www.mahiti.org >>> >>> ------------------------------ >>> >>> _______________________________________________ >>> BangPypers mailing listBangPypers at python.orghttp://mail.python.org/mailman/listinfo/bangpypers >>> >>> >>> _______________________________________________ >>> BangPypers mailing list >>> BangPypers at python.org >>> http://mail.python.org/mailman/listinfo/bangpypers >>> >>> >> >> >> -- >> Praveen Kumar >> Software Engineer >> Mahiti Infotech Pvt. Ltd. >> # 33-34, Hennur Cross >> Hennur Main Road >> Bangalore, India - 560043 >> Mobile: +91 9343297314 >> +91 9739854134 >> http://www.mahiti.org >> >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> >> > > > -- > Ataulla SH > > web:www.kring.com > personal blog:www.ataulla.objectis.net > KRING Technologies India Pvt. Ltd. > 1st Floor, Tower B, Infinity Towers, DLF II, Gurgaon-122 002 > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- Praveen Kumar Software Engineer Mahiti Infotech Pvt. Ltd. # 33-34, Hennur Cross Hennur Main Road Bangalore, India - 560043 Mobile: +91 9343297314 +91 9739854134 http://www.mahiti.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From shridhar_c_k at yahoo.com Fri Nov 7 15:23:32 2008 From: shridhar_c_k at yahoo.com (shridhar kyrlageri) Date: Fri, 7 Nov 2008 06:23:32 -0800 (PST) Subject: [BangPypers] hi all In-Reply-To: <6f7fd6e90811060320s6026524bm1e419e0e9978dd1e@mail.gmail.com> Message-ID: <13163.84314.qm@web45412.mail.sp1.yahoo.com> hi all ? ? i m very new to python.. but i m very much interested in learnin this laguage.. i have worked only on C.. so kindly suggest from where should i start learnin.. i want to do some small projects using python.. please help me with this.. --- On Thu, 6/11/08, Praveen Kumar wrote: From: Praveen Kumar Subject: [BangPypers] file save from python script To: "Python Community" Date: Thursday, 6 November, 2008, 4:50 PM Dear all, I want to save the file on filebased system. i am using urllib here i tried with this code import urllib # fill these in user='admin' password='admin1' addfileurl='http://localhost:8080/starinstance/bin/manage_addFile' useragent="upload.py/0.1" filename='/home/praveen/Desktop/text.jpeg' filetitle='a nice test picture' class MyUrlOpener(urllib.FancyURLopener): ? ?def prompt_user_passwd(self, host, realm): ? ? ? ? return (user,password) ? ?def __init__(self, *args): ? ? ? self.version = useragent ? ? ? urllib.FancyURLopener.__init__(self, *args) def main(): ? ? ? ?# use authentication and set the user agent ? ? ? ?urllib._urlopener = MyUrlOpener() ? ? ? ?# read the contents of filename into filebody ? ? ? ?f=open(filename) ? ? ? ?filebody=f.read() ? ? ? ?f.close ? ? ? ?# urlencode the id, title and file ? ? ? ?params = urllib.urlencode({'id': filename, ? ? ? ?'title':filetitle, ? ? ? ?'file':filebody}) ? ? ? ?# send the file to zope ? ? ? ?f=urllib.urlopen(addfileurl, params) if __name__ == '__main__': ? ?main() when i compile this file with simple python demo.py it gives me error Traceback (most recent call last): ? File "demo.py", line 36, in ? ??? main() ? File "demo.py", line 33, in main ??? f=urllib.urlopen(addfileurl, params) ? File "/usr/lib/python2.4/urllib.py", line 84, in urlopen ??? return opener.open(url, data) ? File "/usr/lib/python2.4/urllib.py", line 192, in open ??? return getattr(self, name)(url, data) ? File "/usr/lib/python2.4/urllib.py", line 272, in open_http ??? import httplib ? File "/usr/lib/python2.4/httplib.py", line 70, in ? ??? import mimetools ? File "/usr/lib/python2.4/mimetools.py", line 6, in ? ??? import tempfile ? File "/usr/lib/python2.4/tempfile.py", line 33, in ? ??? from random import Random as _Random ? File "/usr/lib/python2.4/random.py", line 43, in ? ??? from math import log as _log, exp as _exp, pi as _pi, e as _e ImportError: /usr/lib/python2.4/lib-dynload/math.so: undefined symbol: PyFPE_jbuf so i compiled with this command python2.4 demo.py it does not give any error but it does not give me output to when i check my directory where i am trying to save my jpeg file http://localhost:8080/starinstance/bin/manage_addFile there i do not find that file it means it is not able to store that file.. i do not know what i am trying to do..could any one please give me idea how may i store the file on file system. i created a html page ????
???
??????? Id:

??????? Name:

??????? Keywords:

???????

???????
???
????
once if user select any file it should store to specific location http://localhost:8080/starinstance/bin/manage_addFile Any suggestion will be appreciable Thanks. -- Praveen Kumar Software Engineer Mahiti Infotech Pvt. Ltd. # 33-34, Hennur Cross Hennur Main Road Bangalore, India - 560043 Mobile: ?+91 9343297314 ? ? ? ? ? ? +91 9739854134 http://www.mahiti.org _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From pradeep at btbytes.com Fri Nov 7 15:26:58 2008 From: pradeep at btbytes.com (Pradeep Gowda) Date: Fri, 7 Nov 2008 09:26:58 -0500 Subject: [BangPypers] hi all In-Reply-To: <13163.84314.qm@web45412.mail.sp1.yahoo.com> References: <6f7fd6e90811060320s6026524bm1e419e0e9978dd1e@mail.gmail.com> <13163.84314.qm@web45412.mail.sp1.yahoo.com> Message-ID: <3e3294b70811070626w7f7cb2ecwecb6cd7906f5cf78@mail.gmail.com> On Fri, Nov 7, 2008 at 9:23 AM, shridhar kyrlageri wrote: > i m very new to python.. but i m very much interested in learnin this > laguage.. i have worked only on C.. so kindly suggest from where should i > start learnin.. i want to do some small projects using python.. please help > me with this.. Start here: http://www.ibiblio.org/swaroopch/byteofpython/read/ Advance here: http://diveintopython.org/ From leela.vadlamudi at gmail.com Fri Nov 7 15:35:15 2008 From: leela.vadlamudi at gmail.com (leela vadlamudi) Date: Fri, 7 Nov 2008 20:05:15 +0530 Subject: [BangPypers] hi all In-Reply-To: <3e3294b70811070626w7f7cb2ecwecb6cd7906f5cf78@mail.gmail.com> References: <6f7fd6e90811060320s6026524bm1e419e0e9978dd1e@mail.gmail.com> <13163.84314.qm@web45412.mail.sp1.yahoo.com> <3e3294b70811070626w7f7cb2ecwecb6cd7906f5cf78@mail.gmail.com> Message-ID: <959452bf0811070635q4da49366oaf3c253240da16a2@mail.gmail.com> http://pythonprogramming.jottit.com/ From ataulla at gmail.com Mon Nov 10 07:10:28 2008 From: ataulla at gmail.com (Ataulla S H) Date: Mon, 10 Nov 2008 11:40:28 +0530 Subject: [BangPypers] file save from python script In-Reply-To: <6f7fd6e90811070413l782e66f4kbcffa73e7d529328@mail.gmail.com> References: <81949.16427.qm@web39703.mail.mud.yahoo.com> <6f7fd6e90811062301q36f61e78uf76543b4b3e81201@mail.gmail.com> <6f7fd6e90811070413l782e66f4kbcffa73e7d529328@mail.gmail.com> Message-ID: hi Praveen why cannot use this plone product??? http://plone.org/products/filesystemstorage On Fri, Nov 7, 2008 at 5:43 PM, Praveen Kumar wrote: > Hi Attaullah thank you so much. > I tried that one too but that file is storing in data.fs which i do not > want. i want to store my file to be physically stored. so for that i am > trying to write a python script. i have written many script but could not > get succeed > #!/usr/local/bin/python > """This demonstrates a minimal http upload cgi. > This allows a user to upload up to three files at once. > It is trivial to change the number of files uploaded. > > This script has security risks. A user could attempt to fill > a disk partition with endless uploads. > If you have a system open to the public you would obviously want > to limit the size and number of files written to the disk. > *""" > import cgi > import cgitb; cgitb.enable() > import os, sys > > UPLOAD_DIR = "/home/praveen/Desktop/UPLOAD" > > def save_uploaded_file (form_field, upload_dir): > """This saves a file uploaded by an HTML form. > The form_field is the name of the file input field from the form. > For example, the following form_field would be "file_1": > > The upload_dir is the directory where the file will be written. > If no file was uploaded or if the field does not exist then > this does nothing. > """ > form = cgi.FieldStorage() ///when i tried to print form field its > returning None > if not form.has_key(form_field): return > fileitem = form[form_field] > if not fileitem.file: return > fout = file (os.path.join(upload_dir, fileitem.filename), 'wb') > while 1: > chunk = fileitem.file.read(100000) > if not chunk: break > fout.write (chunk) > fout.close() > > save_uploaded_file ("/home/praveen/Desktop/1.html", UPLOAD_DIR)* > > this script is not giving me error.. > > Is any one know script to save the file physically on the particluar > system.. suppose i have file in my Desktop and i have one interface(html > page with file text field) which provide to select you file and move to > another location /home/praveen/Desktop > > Thanks > > > On Fri, Nov 7, 2008 at 4:49 PM, Ataulla S H wrote: > >> hi praveen try this >> >> myrepo = getattr(context,*'*mydir*'*) >> myrepo.manage_addFile(id=id, title=title, file=file) >> >> >> On Fri, Nov 7, 2008 at 12:31 PM, Praveen Kumar wrote: >> >>> Hi First of all i would like to thank you for giving me some idea.. >>> As Jorgen told i did in same way >>> Hi Jorgen >>> I created a python script in zope instance to upload multiple files and >>> its working successfully.. >>> but its storing the file inside custom folder as we know context always >>> refer to current location i mean our-instance/custom but when i am giving >>> container['bin'] its giving me 'bin' key error. i want to save that file >>> inside my instance for example >>> >>> myzope-instance/mydir/** is any one have any idea >>> >>> *REQUEST=context.REQUEST >>> sentFiles = {} >>> for key in context.REQUEST.keys(): # getting all the ids >>> if key[:5]=='file.' and key[-3:]=='.id': # we finding id >>> file.XXX.id >>> sentFiles[REQUEST[key]]='' >>> >>> for key in context.REQUEST.keys(): >>> if key[:5]=='file.' and key[-3:]!='.id': #we've got a file >>> #found its id and make sure file exists >>> if sentFiles.has_key(REQUEST[key+'.id']) and >>> REQUEST[key].filename: >>> sentFiles[REQUEST[key+'.id']]=REQUEST[key] >>> else: >>> del sentFiles[REQUEST[key+'.id']] #remove keys that dont >>> have files >>> >>> for k in sentFiles.keys(): >>> **context.manage_addFile(k,sentFiles[k])* >>> * container['bin'].mydir.manage_addFile(k,sentFiles[k]) >>> >>> return str(len(sentFiles)) + ' files has been uploaded successfully'* >>> >>> >>> >>> On Thu, Nov 6, 2008 at 7:49 PM, J?rgen J?rgensen wrote: >>> >>>> Hello Praween Kumar - >>>> I would make a pythonscript on the zope like >>>> 'locahost:8080/starinstance/myscript', taking 3 parameters, id, title and >>>> file. >>>> remember to give it manager proxy rights (proxy in top of python script >>>> edit screen, chose manager) >>>> script should be something like: >>>> """ >>>> container['bin'].manage_addFile(id=id, title=title, file=file) >>>> """ >>>> I havent tested, sorry;-), but at least the direction should be >>>> something like this. >>>> then change addfileurl to: >>>> >>>> *addfileurl='http://localhost:8080/starinstance/myscript >>>> '* >>>> >>>> kind regards jorgen / denmark >>>> >>>> >>>> Praveen Kumar wrote: >>>> >>>> Dear all, >>>> I want to save the file on filebased system. i am using urllib >>>> >>>> here i tried with this code >>>> >>>> *import urllib >>>> >>>> # fill these in >>>> user='admin' >>>> password='admin1' >>>> addfileurl='http://localhost:8080/starinstance/bin/manage_addFile' >>>> useragent="upload.py/0.1" >>>> filename='/home/praveen/Desktop/text.jpeg' >>>> filetitle='a nice test picture' >>>> >>>> class MyUrlOpener(urllib.FancyURLopener): >>>> def prompt_user_passwd(self, host, realm): >>>> return (user,password) >>>> def __init__(self, *args): >>>> self.version = useragent >>>> urllib.FancyURLopener.__init__(self, *args) >>>> >>>> def main(): >>>> # use authentication and set the user agent >>>> urllib._urlopener = MyUrlOpener() >>>> >>>> # read the contents of filename into filebody >>>> f=open(filename) >>>> filebody=f.read() >>>> f.close >>>> >>>> # urlencode the id, title and file >>>> params = urllib.urlencode({'id': filename, >>>> 'title':filetitle, >>>> 'file':filebody}) >>>> >>>> # send the file to zope >>>> f=urllib.urlopen(addfileurl, params) >>>> >>>> if __name__ == '__main__': >>>> main()* >>>> >>>> when i compile this file with simple python demo.py it gives me error >>>> Traceback (most recent call last): >>>> File "demo.py", line 36, in ? >>>> main() >>>> File "demo.py", line 33, in main >>>> f=urllib.urlopen(addfileurl, params) >>>> File "/usr/lib/python2.4/urllib.py", line 84, in urlopen >>>> return opener.open(url, data) >>>> File "/usr/lib/python2.4/urllib.py", line 192, in open >>>> return getattr(self, name)(url, data) >>>> File "/usr/lib/python2.4/urllib.py", line 272, in open_http >>>> import httplib >>>> File "/usr/lib/python2.4/httplib.py", line 70, in ? >>>> import mimetools >>>> File "/usr/lib/python2.4/mimetools.py", line 6, in ? >>>> import tempfile >>>> File "/usr/lib/python2.4/tempfile.py", line 33, in ? >>>> from random import Random as _Random >>>> File "/usr/lib/python2.4/random.py", line 43, in ? >>>> from math import log as _log, exp as _exp, pi as _pi, e as _e >>>> ImportError: /usr/lib/python2.4/lib-dynload/math.so: undefined symbol: >>>> PyFPE_jbuf >>>> >>>> so i compiled with this command *python2.4 demo.py* it does not give >>>> any error >>>> but it does not give me output to when i check my directory where i am >>>> trying to save my jpeg file * >>>> http://localhost:8080/starinstance/bin/manage_addFile *there i do not >>>> find that file it means it is not able to store that file. >>>> >>>> i do not know what i am trying to do..could any one please give me idea >>>> how may i store the file on file system. >>>> i created a html page >>>>
>>> ACTION=""> >>>>
>>>> >>>> Id:

>>>> Name:

>>>> Keywords:>>> id="keywords"/>

>>>>

>>>> >>> id="submit"/>
>>>>
>>>>
>>>> once if user select any file it should store to specific location * >>>> http://localhost:8080/starinstance/bin/manage_addFile >>>> >>>> *Any suggestion will be appreciable >>>> >>>> Thanks. >>>> -- >>>> Praveen Kumar >>>> Software Engineer >>>> Mahiti Infotech Pvt. Ltd. >>>> # 33-34, Hennur Cross >>>> Hennur Main Road >>>> Bangalore, India - 560043 >>>> Mobile: +91 9343297314 >>>> +91 9739854134 >>>> http://www.mahiti.org >>>> >>>> ------------------------------ >>>> >>>> _______________________________________________ >>>> BangPypers mailing listBangPypers at python.orghttp://mail.python.org/mailman/listinfo/bangpypers >>>> >>>> >>>> _______________________________________________ >>>> BangPypers mailing list >>>> BangPypers at python.org >>>> http://mail.python.org/mailman/listinfo/bangpypers >>>> >>>> >>> >>> >>> -- >>> Praveen Kumar >>> Software Engineer >>> Mahiti Infotech Pvt. Ltd. >>> # 33-34, Hennur Cross >>> Hennur Main Road >>> Bangalore, India - 560043 >>> Mobile: +91 9343297314 >>> +91 9739854134 >>> http://www.mahiti.org >>> >>> _______________________________________________ >>> BangPypers mailing list >>> BangPypers at python.org >>> http://mail.python.org/mailman/listinfo/bangpypers >>> >>> >> >> >> -- >> Ataulla SH >> >> web:www.kring.com >> personal blog:www.ataulla.objectis.net >> KRING Technologies India Pvt. Ltd. >> 1st Floor, Tower B, Infinity Towers, DLF II, Gurgaon-122 002 >> >> _______________________________________________ >> BangPypers mailing list >> BangPypers at python.org >> http://mail.python.org/mailman/listinfo/bangpypers >> >> > > > -- > Praveen Kumar > Software Engineer > Mahiti Infotech Pvt. Ltd. > # 33-34, Hennur Cross > Hennur Main Road > Bangalore, India - 560043 > Mobile: +91 9343297314 > +91 9739854134 > http://www.mahiti.org > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- Ataulla SH web:www.kring.com personal blog:www.ataulla.objectis.net KRING Technologies India Pvt. Ltd. 1st Floor, Tower B, Infinity Towers, DLF II, Gurgaon-122 002 -------------- next part -------------- An HTML attachment was scrubbed... URL: From vsapre80 at gmail.com Tue Nov 11 18:12:53 2008 From: vsapre80 at gmail.com (Vishal) Date: Tue, 11 Nov 2008 22:42:53 +0530 Subject: [BangPypers] Fwd: [AID Bangalore] Richard Stallman would be glad to vist our computer center In-Reply-To: <529319.21497.qm@web54001.mail.re2.yahoo.com> References: <529319.21497.qm@web54001.mail.re2.yahoo.com> Message-ID: Richard Stallman might be coming to Bangalore. Vishal ---------- Forwarded message ---------- From: Senthil S Date: Mon, Nov 10, 2008 at 1:03 PM Subject: [AID Bangalore] Richard Stallman would be glad to vist our computer center To: aidbangalore at yahoogroups.com Dear all, Dear All, see mail below. thanks senthil From: Richard M. Stallman > Date: Mon, Nov 10, 2008 at 8:41 AM Subject: Re: More programs in Banglore I can certainly stay a few days in Bangalore esp. if I do not go to Chennai. I will not have any dealings with Cisco because we have an important dispute with them. I would be glad to visit the Ambedkar Community Computing center. That will be short, right? As for the Kannada bloggers, please try to combine that with some other event of mine. __._,_.___ Messages in this topic ( 1) Reply (via web post) | Start a new topic Messages| Files| Photos| Links| Database| Polls| Members| Calendar MARKETPLACE ------------------------------ >From kitchen basics to easy recipes - join the Group from Kraft Foods [image: Yahoo! Groups] Change settings via the Web(Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest| Switch format to Traditional Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe Recent Activity Visit Your Group Find helpful tips for Moderators on the Yahoo! Groups team blog. John McEnroe on Yahoo! Groups Join him for the 10 Day Challenge. Yahoo! Groups Special K Challenge Join others who are losing pounds. . __,_._,___ -- "A Strong and Positive attitude creates more miracles than anything else. Because...Life is 10% how you make it, and 90% how you take it" "Diamond is another piece of coal that did well under pressure" Visit, for some good music: http://members.soundclick.com/mukulsapre http://www.soundclick.com/gurusgrace -------------- next part -------------- An HTML attachment was scrubbed... URL: From ylj798 at gmail.com Wed Nov 12 11:32:46 2008 From: ylj798 at gmail.com (yao) Date: Wed, 12 Nov 2008 18:32:46 +0800 Subject: [BangPypers] help me~!!!'tuple' object has no attribute 'compile' Message-ID: <491AB0CE.1020707@gmial.com> my code ------------------------------------------------------------------------------------------- # -*- coding: utf8 -*- #!/usr/bin/python import urllib import urllib2 import re import MySQLdb conn=MySQLdb.connect (host="localhost",user="root",passwd="ylj",db="net", charset="utf8") cur = conn.cursor() sql='select net_site.downline_re,net_site.down_re,net_cha.id,net_cha.urlid,net_cha.source_url from net_site,net_cha where net_site.id=net_cha.urlid' cur.execute(sql) re=cur.fetchall() if len(re)!=0: for i in re: down_re="%s"%(i[1]) source_url="%s"%(i[4]) data= urllib2.urlopen(source_url).read() res=re.compile(down, re_DOTALL).findall(data) print str --------------------------------------------------------------------------- when it's run,the eric give error ------------- The debugged program raised the exception unhandled AttributeError "'tuple' object has no attribute 'compile'" File: /var/www/py/down.py, Line: 27 ------------ the line:27 -------> res=re.compile(down, re_DOTALL).findall(data) -------------- next part -------------- An HTML attachment was scrubbed... URL: From viswabharathi at gmail.com Wed Nov 12 11:44:34 2008 From: viswabharathi at gmail.com (ViswaBharathi) Date: Wed, 12 Nov 2008 16:14:34 +0530 Subject: [BangPypers] help me~!!!'tuple' object has no attribute 'compile' In-Reply-To: <491AB0CE.1020707@gmial.com> References: <491AB0CE.1020707@gmial.com> Message-ID: Problem here is both module name and variable name is same 're'. It should be like as follows, *rec*=cur.fetchall() if len(rec)!=0: for i in rec: On Wed, Nov 12, 2008 at 4:02 PM, yao wrote: > my code > ------------------------------------------------------------------------------------------- > > # -*- coding: utf8 -*- > #!/usr/bin/python > > import urllib > import urllib2 > import re > import MySQLdb > conn=MySQLdb.connect > (host="localhost",user="root",passwd="ylj",db="net", charset="utf8") > cur = conn.cursor() > sql='select > net_site.downline_re,net_site.down_re,net_cha.id,net_cha.urlid,net_cha.source_url > > from net_site,net_cha where net_site.id=net_cha.urlid' > cur.execute(sql) > re=cur.fetchall() > if len(re)!=0: > for i in re: > down_re="%s"%(i[1]) > source_url="%s"%(i[4]) > data= urllib2.urlopen(source_url).read() > res=re.compile(down, re_DOTALL).findall(data) > print str > --------------------------------------------------------------------------- > when it's run,the eric give error > ------------- > The debugged program raised the exception unhandled AttributeError > "'tuple' object has no attribute 'compile'" > File: /var/www/py/down.py, Line: 27 > ------------ > the line:27 -------> res=re.compile(down, re_DOTALL).findall(data) > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vivek at vivekdurai.com Wed Nov 12 17:26:07 2008 From: vivek at vivekdurai.com (vivek durai) Date: Wed, 12 Nov 2008 21:56:07 +0530 Subject: [BangPypers] Scaling Django-Mysql Message-ID: <3fe70b2a0811120826m6336db4dqbe93683642752f09@mail.gmail.com> Hi All: Just checking to see if anyone on this list has experience scaling a django app using mysql as the backend. I have many issues - eg. one involves constructing Qsets with icontain statements for a table with 50000 records. Any experience with this? Warm regards, Vivek -------------- next part -------------- An HTML attachment was scrubbed... URL: From pradeep at btbytes.com Wed Nov 12 18:12:20 2008 From: pradeep at btbytes.com (Pradeep Gowda) Date: Wed, 12 Nov 2008 12:12:20 -0500 Subject: [BangPypers] Scaling Django-Mysql In-Reply-To: <3fe70b2a0811120826m6336db4dqbe93683642752f09@mail.gmail.com> References: <3fe70b2a0811120826m6336db4dqbe93683642752f09@mail.gmail.com> Message-ID: <3e3294b70811120912t137110b0l9fa77d75d5784478@mail.gmail.com> icontains is syntactic sugar for "WHERE xxx ILIKE" and is best used for sting searches on a small subset. For 50,000 records, IMO, you will have to investigate full text search. Using Full text search in MySQL is a straight forward affair. You will have to create a FULLTEXT index. +PG On Wed, Nov 12, 2008 at 11:26 AM, vivek durai wrote: > Hi All: > > Just checking to see if anyone on this list has experience scaling a django > app using mysql as the backend. I have many issues - eg. one involves > constructing Qsets with icontain statements for a table with 50000 records. > Any experience with this? > > Warm regards, > > Vivek > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > From iapain at yahoo.com Wed Nov 12 21:13:15 2008 From: iapain at yahoo.com (Deepak Thukral) Date: Wed, 12 Nov 2008 12:13:15 -0800 (PST) Subject: [BangPypers] Scaling Django-Mysql In-Reply-To: <3fe70b2a0811120826m6336db4dqbe93683642752f09@mail.gmail.com> Message-ID: <932747.19199.qm@web33107.mail.mud.yahoo.com> > Just checking to see if anyone on this list has experience > scaling a django > app using mysql as the backend. I have many issues - eg. > one involves > constructing Qsets with icontain statements for a table > with 50000 records. Its limitation of Django ORM, You can cache result, don't use Generic FK, Q is quite flexible but you can call SQL statement and wrap then into sqlobject. Alternatively, have a look on SQLAlchemey and PostgreSQL uses MVCC for transaction resolution and its much better than MySQL Cheers, Deepak From orsenthil at gmail.com Thu Nov 13 08:42:49 2008 From: orsenthil at gmail.com (Senthil Kumaran) Date: Thu, 13 Nov 2008 13:12:49 +0530 Subject: [BangPypers] Fwd: [AID Bangalore] Richard Stallman would be glad to vist our computer center Message-ID: <20081113074249.GA6712@goofy> On Tue, Nov 11, 2008 at 10:42:53PM +0530, Vishal wrote: > Richard Stallman might be coming to Bangalore. > Please keep the group informed about rms talk-schedules in Bangalore. Though this group is specific to Python, idealist like rms and his thoughts are worthy to listen. -- Senthil From leela.vadlamudi at gmail.com Fri Nov 14 06:06:53 2008 From: leela.vadlamudi at gmail.com (leela vadlamudi) Date: Fri, 14 Nov 2008 10:36:53 +0530 Subject: [BangPypers] Python companies Message-ID: <959452bf0811132106g74c3a492w79edb376e48bd7f6@mail.gmail.com> Hi all, I am a python programmer looking for a job. What are the companies working on python in Bangalore? Is there a list anywhere? Thanks, Leela From banibrata.dutta at gmail.com Fri Nov 14 06:10:54 2008 From: banibrata.dutta at gmail.com (Banibrata Dutta) Date: Fri, 14 Nov 2008 10:40:54 +0530 Subject: [BangPypers] Python companies In-Reply-To: <959452bf0811132106g74c3a492w79edb376e48bd7f6@mail.gmail.com> References: <959452bf0811132106g74c3a492w79edb376e48bd7f6@mail.gmail.com> Message-ID: <3de8e1f70811132110n1a98dd36l7995700cb41c293d@mail.gmail.com> If you don't mind working for startups, visit any of the Startup job boards s.a. the ones at plugged.in or venturewoods.org etc., and I'm sure you'd be grabbed soon... On Fri, Nov 14, 2008 at 10:36 AM, leela vadlamudi wrote: > Hi all, > > I am a python programmer looking for a job. > What are the companies working on python in Bangalore? > Is there a list anywhere? > > Thanks, > Leela > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- regards, Banibrata http://www.linkedin.com/in/bdutta http://octapod.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeff at taupro.com Fri Nov 14 21:35:52 2008 From: jeff at taupro.com (Jeff Rush) Date: Fri, 14 Nov 2008 14:35:52 -0600 Subject: [BangPypers] Congratulations to India for Landing on the Moon! In-Reply-To: <3fe70b2a0811120826m6336db4dqbe93683642752f09@mail.gmail.com> References: <3fe70b2a0811120826m6336db4dqbe93683642752f09@mail.gmail.com> Message-ID: <491DE128.5040906@taupro.com> Congratulations are in order to the nation of India for their space mission (Chandrayaan-1) orbiting the moon that today dropped a probe onto the surface. It took 25-minutes to fall and is the first Indian-built object to reach the surface. That is a cool achievement very few nations have attained! Another great step in opening up space to all of Mankind. http://www.cnn.com/2008/TECH/space/11/14/india.moon.probe/index.html "Indian Space Research Organization" - photos and reports http://www.isro.org/ The announcement came out of the Indian Space Research Organization in Bangalore. There are some interesting photographs on the ISRO website. The Chandrayaan-1 satellite, with ten additional payloads of a kind different from the one dropped, will remain in orbit mapping the terrain. A job well done! (It is unknown whether Python was running onboard ;-) -Jeff From iapain at yahoo.com Sat Nov 15 00:29:42 2008 From: iapain at yahoo.com (Deepak Thukral) Date: Fri, 14 Nov 2008 15:29:42 -0800 (PST) Subject: [BangPypers] Congratulations to India for Landing on the Moon! In-Reply-To: <491DE128.5040906@taupro.com> Message-ID: <107878.47572.qm@web33106.mail.mud.yahoo.com> > A job well done! > (It is unknown whether Python was running onboard ;-) ISRO is in stone age as far as Computer Technology is concern (Their portal only works in IE6 and written in creepy html). I think they are toiling with C, Fortran & JAVA. Probably they should inherit Python/Erlang from NASA/ESA. Hoping their new GIS Keyhole like webapp will use Python. Deepak From venkat83 at gmail.com Sat Nov 15 15:42:17 2008 From: venkat83 at gmail.com (Venkatraman S) Date: Sat, 15 Nov 2008 20:12:17 +0530 Subject: [BangPypers] Congratulations to India for Landing on the Moon! In-Reply-To: <107878.47572.qm@web33106.mail.mud.yahoo.com> References: <491DE128.5040906@taupro.com> <107878.47572.qm@web33106.mail.mud.yahoo.com> Message-ID: On Sat, Nov 15, 2008 at 4:59 AM, Deepak Thukral wrote: > > A job well done! > > (It is unknown whether Python was running onboard ;-) > - Language is just a tool - lets not be too fanatic w.r.t the language here :) > > ISRO is in stone age as far as Computer Technology is concern (Their portal > only works in IE6 and written in creepy html). I think they are toiling with > C, Fortran & JAVA. Probably they should inherit Python/Erlang from NASA/ESA. > Hoping their new GIS Keyhole like webapp will use Python. > - the 3 languages still drive business worth billions all across the earth. If they collapse, then we are back to the stone-age :) - C/Cpp + Python is one of the best 'juices' i have ever drank in the recent past. Python just works amazing well as an integration language. - Heard of Bhuvan??? Venkat Blog @ http://blizzardzblogs.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From orsenthil at gmail.com Sun Nov 16 04:02:41 2008 From: orsenthil at gmail.com (Senthil Kumaran) Date: Sun, 16 Nov 2008 08:32:41 +0530 Subject: [BangPypers] Congratulations to India for Landing on the Moon! In-Reply-To: <107878.47572.qm@web33106.mail.mud.yahoo.com> References: <491DE128.5040906@taupro.com> <107878.47572.qm@web33106.mail.mud.yahoo.com> Message-ID: <20081116030241.GA7753@goofy> First of all Thank you, Jeff. Even I got curious after reading your email. We know python.org advertises NASA using Python. Let us try to figure out the software components used at ISRO and Chandrayaan. Deepak, agree with your comment on their website. Ignoring that, do not underestimate the projects which are going on at ISRO or IIAP and their involvement with Free Software. I happened to meet the principal scientist of Tauvex ( http://tauvex.iiap.res.in ), its impressive the kind of work that is going on. I am of the thought, if you check more projects then you could find folks using Python, its a good probablity. -- Senthil On Fri, Nov 14, 2008 at 03:29:42PM -0800, Deepak Thukral wrote: > > A job well done! > > (It is unknown whether Python was running onboard ;-) > > ISRO is in stone age as far as Computer Technology is concern (Their portal only works in IE6 and written in creepy html). I think they are toiling with C, Fortran & JAVA. Probably they should inherit Python/Erlang from NASA/ESA. Hoping their new GIS Keyhole like webapp will use Python. > > Deepak > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers From abpillai at gmail.com Mon Nov 17 07:29:06 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 17 Nov 2008 11:59:06 +0530 Subject: [BangPypers] Congratulations to India for Landing on the Moon! In-Reply-To: <107878.47572.qm@web33106.mail.mud.yahoo.com> References: <491DE128.5040906@taupro.com> <107878.47572.qm@web33106.mail.mud.yahoo.com> Message-ID: <8548c5f30811162229i59dc04eclab0094359ee8ebd7@mail.gmail.com> On Sat, Nov 15, 2008 at 4:59 AM, Deepak Thukral wrote: >> A job well done! >> (It is unknown whether Python was running onboard ;-) > > ISRO is in stone age as far as Computer Technology is concern (Their portal only works in IE6 and written in creepy html). I think they are toiling with C, Fortran & JAVA. Probably they should inherit Python/Erlang from NASA/ESA. Hoping their new GIS Keyhole like webapp will use Python. > Don't confuse the lack of sophistication of their website with any lack of sophistication in engineering. Space & rocket science/engineering is a much more complex and delicate affair than typical software engineering. ISRO develops and uses complex software for mission control which is not exactly akin to developing a website - it is much more difficult to get right. Even if your website crashes, perhaps you might loose data or a few visitors and lose some uptime. However, this is not the case with the software used in space science. Everything has to work and work perfectly. Remember that simple software glitches have often caused entire rocket missions to be aborted. This has happened even for mighty NASA. The most recent one I can think of is the glitch with VxWorks that happened in one of their Mars rovers which caused the system software to reboot itself many times. In fact ISRO has done a splendid job managing to put a satellite to Moon orbit and also perform a moon impact all in the very first attempt. Recall that Russia and U.S.A have had several crash lands and aborted attempts in their moon missions. The quality control at ISRO has to be pretty damn good. I read a few articles about the images from Chandrayaan and it seems the camera they have is top-class. The images it has send are already pretty good, and it is perhaps the first moon satellite to carry a 3D (Terrain mapping) camera. I don't think any single moon (or perhaps earth) satellite is a classic example of international co-operation. Chandrayaan carries 11 payloads. To me, it looks like India is leading the way in international space co-operation. ISRO needs a big pat on the back for what they have done. > Deepak > > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > -- -Anand From venkatasubramanian at gmail.com Mon Nov 17 07:44:53 2008 From: venkatasubramanian at gmail.com (venkata subramanian) Date: Mon, 17 Nov 2008 01:44:53 -0500 Subject: [BangPypers] Congratulations to India for Landing on the Moon! In-Reply-To: <8548c5f30811162229i59dc04eclab0094359ee8ebd7@mail.gmail.com> References: <491DE128.5040906@taupro.com> <107878.47572.qm@web33106.mail.mud.yahoo.com> <8548c5f30811162229i59dc04eclab0094359ee8ebd7@mail.gmail.com> Message-ID: Also, ISRO achieved this at very low cost. Remember that cost of space operations is one of the major hindrances in exploring more. Also, the Impact Probe worked. The Impact probe was an all or nothing attempt and we got all. The Chandrayaan-2 mission is even more ambitious. I am proud to be living in this era and dreaming of contributing to this great endeavor one day. Regards, Venkat On Mon, Nov 17, 2008 at 1:29 AM, Anand Balachandran Pillai wrote: > On Sat, Nov 15, 2008 at 4:59 AM, Deepak Thukral wrote: >>> A job well done! >>> (It is unknown whether Python was running onboard ;-) >> >> ISRO is in stone age as far as Computer Technology is concern (Their portal only works in IE6 and written in creepy html). I think they are toiling with C, Fortran & JAVA. Probably they should inherit Python/Erlang from NASA/ESA. Hoping their new GIS Keyhole like webapp will use Python. >> > > Don't confuse the lack of sophistication of their website with any lack of > sophistication in engineering. Space & rocket science/engineering is a much more > complex and delicate affair than typical software engineering. ISRO develops > and uses complex software for mission control which is not exactly > akin to developing a website - it is much more difficult to get right. > > Even if your website crashes, perhaps you might loose data or a few visitors > and lose some uptime. However, this is not the case with the software used > in space science. Everything has to work and work perfectly. Remember that > simple software glitches have often caused entire rocket missions to be aborted. > This has happened even for mighty NASA. The most recent one I can think of > is the glitch with VxWorks that happened in one of their Mars rovers > which caused > the system software to reboot itself many times. > > In fact ISRO has done a splendid job managing to put a satellite to Moon > orbit and also perform a moon impact all in the very first attempt. Recall that > Russia and U.S.A have had several crash lands and aborted attempts in their > moon missions. The quality control at ISRO has to be pretty damn good. > > I read a few articles about the images from Chandrayaan and it seems the > camera they have is top-class. The images it has send are already pretty good, > and it is perhaps the first moon satellite to carry a 3D (Terrain > mapping) camera. > I don't think any single moon (or perhaps earth) satellite is a classic example > of international co-operation. Chandrayaan carries 11 payloads. > > To me, it looks like India is leading the way in international space > co-operation. > ISRO needs a big pat on the back for what they have done. > >> Deepak >> >> >> >> _______________________________________________ >> 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 > From pradeep at change-congress.org Mon Nov 17 08:11:48 2008 From: pradeep at change-congress.org (Pradeep Gowda) Date: Mon, 17 Nov 2008 02:11:48 -0500 Subject: [BangPypers] Congratulations to India for Landing on the Moon! In-Reply-To: <8548c5f30811162229i59dc04eclab0094359ee8ebd7@mail.gmail.com> References: <491DE128.5040906@taupro.com> <107878.47572.qm@web33106.mail.mud.yahoo.com> <8548c5f30811162229i59dc04eclab0094359ee8ebd7@mail.gmail.com> Message-ID: <3e3294b70811162311g13079530vd37345cd172c6e63@mail.gmail.com> On Mon, Nov 17, 2008 at 1:29 AM, Anand Balachandran Pillai wrote: > On Sat, Nov 15, 2008 at 4:59 AM, Deepak Thukral wrote: >>> A job well done! >>> (It is unknown whether Python was running onboard ;-) >> >> ISRO is in stone age as far as Computer Technology is concern (Their portal only works in IE6 and written in creepy html). I think they are toiling with C, Fortran & JAVA. Probably they should inherit Python/Erlang from NASA/ESA. Hoping their new GIS Keyhole like webapp will use Python. >> > > Don't confuse the lack of sophistication of their website with any lack of > sophistication in engineering. Space & rocket science/engineering is a much more > complex and delicate affair than typical software engineering. ISRO develops > and uses complex software for mission control which is not exactly > akin to developing a website - it is much more difficult to get right. > > Even if your website crashes, perhaps you might loose data or a few visitors > and lose some uptime. However, this is not the case with the software used > in space science. Everything has to work and work perfectly. Remember that > simple software glitches have often caused entire rocket missions to be aborted. > This has happened even for mighty NASA. The most recent one I can think of > is the glitch with VxWorks that happened in one of their Mars rovers > which caused > the system software to reboot itself many times. > > In fact ISRO has done a splendid job managing to put a satellite to Moon > orbit and also perform a moon impact all in the very first attempt. Recall that > Russia and U.S.A have had several crash lands and aborted attempts in their > moon missions. The quality control at ISRO has to be pretty damn good. > > I read a few articles about the images from Chandrayaan and it seems the > camera they have is top-class. The images it has send are already pretty good, > and it is perhaps the first moon satellite to carry a 3D (Terrain > mapping) camera. > I don't think any single moon (or perhaps earth) satellite is a classic example > of international co-operation. Chandrayaan carries 11 payloads. > > To me, it looks like India is leading the way in international space > co-operation. > ISRO needs a big pat on the back for what they have done. Thanks Anand for a very nice summary of the project's accomplishments. I have been reading stories about Chandrayaan online, but yours has captured the essential accomplishments. +PG From tanjavuru at yahoo.com Tue Nov 18 08:02:43 2008 From: tanjavuru at yahoo.com (S Rangaswamy) Date: Mon, 17 Nov 2008 23:02:43 -0800 (PST) Subject: [BangPypers] Python companies In-Reply-To: <3de8e1f70811132110n1a98dd36l7995700cb41c293d@mail.gmail.com> Message-ID: <933041.86634.qm@web54607.mail.re2.yahoo.com> have you tried ZeOmega. south end road bangalore. sorry dont know of any list . please contact bdeepa at zeomega dot com. please mention bangpypers ! best sathya --- On Thu, 11/13/08, Banibrata Dutta wrote: From: Banibrata Dutta Subject: Re: [BangPypers] Python companies To: "Bangalore Python Users Group - India" Date: Thursday, November 13, 2008, 11:10 PM If you don't mind working for startups, visit any of the Startup job boards s.a. the ones at plugged.in or venturewoods.org etc., and I'm sure you'd be grabbed soon... On Fri, Nov 14, 2008 at 10:36 AM, leela vadlamudi wrote: Hi all, I am a python programmer looking for a job. What are the companies working on python in Bangalore? Is there a list anywhere? Thanks, Leela _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers -- regards, Banibrata http://www.linkedin.com/in/bdutta http://octapod.wordpress.com _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers -------------- next part -------------- An HTML attachment was scrubbed... URL: From lawgon at au-kbc.org Tue Nov 18 08:52:46 2008 From: lawgon at au-kbc.org (Kenneth Gonsalves) Date: Tue, 18 Nov 2008 13:22:46 +0530 Subject: [BangPypers] Python companies In-Reply-To: <933041.86634.qm@web54607.mail.re2.yahoo.com> References: <933041.86634.qm@web54607.mail.re2.yahoo.com> Message-ID: <200811181322.46481.lawgon@au-kbc.org> On Tuesday 18 November 2008 12:32:43 pm S Rangaswamy wrote: > have you tried ZeOmega. > south end road bangalore. > sorry dont know of any list . > please contact bdeepa at zeomega dot com. please mention bangpypers ! or mahiti -- regards Kenneth Gonsalves Associate NRC-FOSS http://nrcfosshelpline.in/web/ From januradha at zeomega.net Tue Nov 25 16:24:00 2008 From: januradha at zeomega.net (Anuradha Jena) Date: Tue, 25 Nov 2008 20:54:00 +0530 Subject: [BangPypers] any body know how to use winlike Message-ID: <2bdb71d50811250724g12ca5e50j26e87fc023d61293@mail.gmail.com> Hi, Any body know how to use winlike.If yes.Can s/he give a simple example of onEvent & onClose functionally. Actually i am facing problem where. I have one page there if u click on a text Winlike window will open.After opening i want to print text value,it is not printing.i am calling by parent.document.forms['formname'].getElementById("Id"). parent.document.forms is giving an object but parent.document.forms['formname'] is giving undefined.I already tired all the possibility like opener/parent.window .So can anybody give any solution? Thanks Anuradha -- || Anuradha || -------------- next part -------------- An HTML attachment was scrubbed... URL: