From nagappan at gmail.com Tue Dec 2 07:18:23 2008 From: nagappan at gmail.com (Nagappan A) Date: Mon, 1 Dec 2008 22:18:23 -0800 Subject: [BangPypers] Announce: Linux Desktop Testing Project (LDTP) 1.4.0 released Message-ID: <9d0602eb0812012218h572b2a27h99bae3a650141c1e@mail.gmail.com> Greetings all, We are proud to announce the release of LDTP 1.4.0. This release features number of important breakthroughs in LDTP as well as in the field of Test Automation. This release note covers a brief introduction on LDTP followed by the list of new features and major bug fixes which makes this new version of LDTP the best of the breed. Useful references have been included at the end of this article for those who wish to hack / use LDTP. About LDTP: Linux Desktop Testing Project is aimed at producing high quality test automation framework (C / Python) and cutting-edge tools that can be used to test Linux Desktop and improve it. It uses the Accessibility libraries to poke through the application's user interface. The framework also has tools to record test-cases based on user events in the interface of the application which is under testing. We strive to help in building a quality desktop. Whats new in this release: Added new APIs for VMware Workstation automation Initial work for LDTPv2 - LDTP engine in python Added code block specific to Access Company related environment Improved LDTP performance, by reducing the number of window information lookup Access company has contributed significant code to perform on multiple window without title Bug fixes: * Guofu Xu fixed couple of crash, handled new scenarios where the window title is empty and many other performance improvement. Fixed bug # 343890, 550978 Fixed thread lock, which avoid the crash Download source tarball - http://download.freedesktop.org/ldtp/1.x/1.4.x/ldtp-1.4.0.tar.gz LDTP news: More news to come later ;-) References: For detailed information on LDTP framework and latest updates visit http://ldtp.freedesktop.org For information on various APIs in LDTP including those added for this release can be got from http://ldtp.freedesktop.org/user-doc/index.html To subscribe to LDTP mailing lists, visit http://ldtp.freedesktop.org/wiki/Mailing_20list IRC Channel - #ldtp on irc.freenode.net Thanks Nagappan -- Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From leela.vadlamudi at gmail.com Wed Dec 3 16:24:15 2008 From: leela.vadlamudi at gmail.com (leela vadlamudi) Date: Wed, 3 Dec 2008 20:54:15 +0530 Subject: [BangPypers] Python companies In-Reply-To: <200811181322.46481.lawgon@au-kbc.org> References: <933041.86634.qm@web54607.mail.re2.yahoo.com> <200811181322.46481.lawgon@au-kbc.org> Message-ID: <959452bf0812030724v6392b129yb026207f86b36908@mail.gmail.com> Hi All, My search for a suitable python job has ended successfully. Thanks for all who have helped me in that. Here is the list of companies that use python which I came across in my search (in no particular order). Bangalore: Hidden reflex Comat technologies Zeomega Mahiti PiCorp Gamecurry, games2win (main branch in Mumbai) Tachyon technologies Chennai: Global analytics India pvt Ltd Uniphore Vikaza Inc Hyderabad: Synovel Software Technologies Pvt. Ltd People may add to this list and hope it will have some use. Thanks, Leela From skpatel20 at hotmail.com Thu Dec 4 05:36:04 2008 From: skpatel20 at hotmail.com (Sanjaya Kumar Patel) Date: Thu, 4 Dec 2008 10:06:04 +0530 Subject: [BangPypers] Python companies In-Reply-To: <959452bf0812030724v6392b129yb026207f86b36908@mail.gmail.com> References: <933041.86634.qm@web54607.mail.re2.yahoo.com> <200811181322.46481.lawgon@au-kbc.org> <959452bf0812030724v6392b129yb026207f86b36908@mail.gmail.com> Message-ID: Bhubaneswar: RAD Solutions Private Limited (http://www.radsolutions.co.in) > Date: Wed, 3 Dec 2008 20:54:15 +0530 > From: leela.vadlamudi at gmail.com > To: bangpypers at python.org > Subject: Re: [BangPypers] Python companies > > Hi All, > > My search for a suitable python job has ended successfully. Thanks for > all who have helped me in that. Here is the list of companies that use > python which I came across in my search (in no particular order). > > Bangalore: > > Hidden reflex > Comat technologies > Zeomega > Mahiti > PiCorp > Gamecurry, games2win (main branch in Mumbai) > Tachyon technologies > > Chennai: > > Global analytics India pvt Ltd > Uniphore > Vikaza Inc > > Hyderabad: > > Synovel Software Technologies Pvt. Ltd > > > People may add to this list and hope it will have some use. > > Thanks, > Leela > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers _________________________________________________________________ Searching for the best deals on travel? Visit MSN Travel. http://in.msn.com/coxandkings -------------- next part -------------- An HTML attachment was scrubbed... URL: From connect2shashi at gmail.com Thu Dec 4 10:37:58 2008 From: connect2shashi at gmail.com (Shashi) Date: Thu, 4 Dec 2008 15:07:58 +0530 Subject: [BangPypers] Pythonizing an algorithm Message-ID: <110ee9010812040137p7ab5bb93jf34708455b09d3ff@mail.gmail.com> I'm making a debian package manager for people who don't have internet connection on their computer but have access to internet else where... (Like an internet cafe) here's the code: http://github.com/shashi/downemdebs It is almost functional but lacks one important function named isNewer in http://github.com/shashi/downemdebs/tree/master/dedlib.py which lets you compare two version nos and returns true if available is newer than wanted... The official algorithm is described here: http://manpages.ubuntu.com/manpages/hardy/man5/deb-version.htm in the Sorting Algorithm section... I can't understand a little bit of it... Please help me write it... If you are good in GUI programming and want to help please take a look at the code at github. -- , , / \ ((__-^^-,-^^-__)) `_----' `----_-' `--| o` 'o |--' \ ` / ): : ( :o_o: "--- " www.gnu.org www.uncorkers.org From orsenthil at gmail.com Thu Dec 4 10:51:50 2008 From: orsenthil at gmail.com (Senthil Kumaran) Date: Thu, 4 Dec 2008 15:21:50 +0530 Subject: [BangPypers] Pythonizing an algorithm In-Reply-To: <110ee9010812040137p7ab5bb93jf34708455b09d3ff@mail.gmail.com> References: <110ee9010812040137p7ab5bb93jf34708455b09d3ff@mail.gmail.com> Message-ID: <7c42eba10812040151m29cd9c81jbd6a49d63f957f1a@mail.gmail.com> On Thu, Dec 4, 2008 at 3:07 PM, Shashi wrote: > http://manpages.ubuntu.com/manpages/hardy/man5/deb-version.htm > > in the Sorting Algorithm section... I can't > understand a little bit of it... Please help Did not look at the code and went to algorithm to see what it is. It seem fairly straight forward. I shall try to explain step by step and try it out in code. Algorithm: The strings are compared from left to right. First the initial part of each string consisting entirely of non-digit characters is determined. These two parts (one of which may be empty) are compared lexically. If a difference is found it is returned. The lexical comparison is a comparison of ASCII values modified so that all the letters sort earlier than all the non-letters and so that a tilde sorts before anything, even the end of a part. For example, the fol? lowing parts are in sorted order: '~~', '~~a', '~', the empty part, 'a'. Then the initial part of the remainder of each string which consists entirely of digit characters is determined. The numerical values of these two parts are compared, and any difference found is returned as the result of the comparison. For these purposes an empty string (which can only occur at the end of one or both version strings being compared) counts as zero. These two steps (comparing and removing initial non-digit strings and initial digit strings) are repeated until a difference is found or both strings are exhausted. SUGGESTION: 1) use regex to split the strings to non-digits ( not alpha) and digits. 2) get the length of the non-digits obtained and the digits string obtained. 3) as the example says, Before doing a string compare, run through to compare ~ and empty string. Whichever has more ~ or empty string is greater. 4) next Do string compare. 5) come to digits portion. Set empty string as Zero and do a numeric compare and figure out which one is greater. HTH, Senthil From hussainbohra_30 at yahoo.com Mon Dec 8 07:07:43 2008 From: hussainbohra_30 at yahoo.com (Hussain Bohra) Date: Sun, 7 Dec 2008 22:07:43 -0800 (PST) Subject: [BangPypers] Django on Windows XP Message-ID: <29253.73665.qm@web52503.mail.re2.yahoo.com> Hi All, I am supposed to make a small application using a Django Framework of a Python. I have already installed and using Python 2.5, But I am not able to set up a Django in a Windows, as I am not able to find out the windows installer in net, what I am getting is only linux installer in http://www.djangoproject.com/download. I am trying to follow up the instruction provided in http://effbot.org/zone/django.htm, ?"Installing Django on Windows in less than 5 minutes". The steps what it is telling is: ===================== Assuming you have Python 2.4 or Python 2.5, exemaker, and the svn Subversion command-line client. Python 2.5?# In a command line window, do: cd C:\Python25\Lib\site-packages svn co http://code.djangoproject.com/svn/django/trunk/django cd django\bin exemaker django-admin.py Setting up Django?# Create a work directory, and use django-admin to create a project directory in there. mkdir c:\mytest cd c:\mytest django-admin startproject myproject --------------------------------------------------------------------------------------------------------- I have downloaded 'exemaker-1.2-20041012.zip' and 'svn-win32-1.5.4_py25.zip' from net but I didn't able to get how to use 'svn-win32-1.5.4_py25.zip', inorder to execute below commands successfully. Is 'svn-win32-1.5.4_py25.zip' is a correct package what I have downloaded, as I can found many packages at http://subversion.tigris.org/servlets/ProjectDocumentList?expandFolder=254&folderID=91 cd C:\Python25\Lib\site-packages svn co http://code.djangoproject.com/svn/django/trunk/djangoI am stuck here, Any advice or direction is really appreciable. Regards, Hussain Bohra Be the first one to try the new Messenger 9 Beta! Go to http://in.messenger.yahoo.com/win/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From banibrata.dutta at gmail.com Mon Dec 8 07:21:34 2008 From: banibrata.dutta at gmail.com (Banibrata Dutta) Date: Mon, 8 Dec 2008 11:51:34 +0530 Subject: [BangPypers] Django on Windows XP In-Reply-To: <29253.73665.qm@web52503.mail.re2.yahoo.com> References: <29253.73665.qm@web52503.mail.re2.yahoo.com> Message-ID: <3de8e1f70812072221l50b70ea0o4e64525e3f1bbcbc@mail.gmail.com> Google generally leads you too all answers anyway, and it's a gr8 idea to check there first.Via google, I found this: http://thinkhole.org/wp/2006/04/03/django-on-windows-howto/ On Mon, Dec 8, 2008 at 11:37 AM, Hussain Bohra wrote: > Hi All, > > I am supposed to make a small application using a Django Framework of a > Python. I have already installed and using Python 2.5, But I am not able to > set up a Django in a Windows, as I am not able to find out the windows > installer in net, what I am getting is only linux installer in > http://www.djangoproject.com/download. > > I am trying to follow up the instruction provided in > http://effbot.org/zone/django.htm, > "Installing Django on Windows in less than 5 minutes". > > The steps what it is telling is: > ===================== > Assuming you have Python 2.4 or Python 2.5, exemaker, > and the *svn* Subversion command-line client > . > Python 2.5 # > > In a command line window, do: > > cd C:\Python25\Lib\site-packages > svn co http://code.djangoproject.com/svn/django/trunk/django > > cd django\bin > exemaker django-admin.py > > Setting up Django # > > Create a work directory, and use *django-admin* to create a project > directory in there. > > mkdir c:\mytest > cd c:\mytest > django-admin startproject myproject > > > --------------------------------------------------------------------------------------------------------- > > I have downloaded 'exemaker-1.2-20041012.zip' and > 'svn-win32-1.5.4_py25.zip' from net but I didn't able to get how to use > 'svn-win32-1.5.4_py25.zip', inorder to execute below commands successfully. > Is 'svn-win32-1.5.4_py25.zip' is a correct package what I have downloaded, > as I can found many packages at > http://subversion.tigris.org/servlets/ProjectDocumentList?expandFolder=254&folderID=91 > > cd C:\Python25\Lib\site-packages > svn co http://code.djangoproject.com/svn/django/trunk/django > > I am stuck here, Any advice or direction is really appreciable. > > Regards, > Hussain Bohra > > > ------------------------------ > Add more friends to your messenger and enjoy! Invite them now. > _______________________________________________ > 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 anandology at gmail.com Mon Dec 8 07:24:30 2008 From: anandology at gmail.com (Anand Chitipothu) Date: Mon, 8 Dec 2008 11:54:30 +0530 Subject: [BangPypers] Django on Windows XP In-Reply-To: <29253.73665.qm@web52503.mail.re2.yahoo.com> References: <29253.73665.qm@web52503.mail.re2.yahoo.com> Message-ID: <41139fcb0812072224u4a4d46b0td28de2f1721b98ff@mail.gmail.com> > I am supposed to make a small application using a Django Framework of a > Python. I have already installed and using Python 2.5, But I am not able to > set up a Django in a Windows, as I am not able to find out the windows > installer in net, what I am getting is only linux installer in > http://www.djangoproject.com/download. No it is not linux installer. It works on all platforms. I think, the easiest way to install it is using easy_install[1]. easy_install Django [1]: http://peak.telecommunity.com/DevCenter/EasyInstall From hussainbohra_30 at yahoo.com Mon Dec 8 08:00:46 2008 From: hussainbohra_30 at yahoo.com (Hussain Bohra) Date: Sun, 7 Dec 2008 23:00:46 -0800 (PST) Subject: [BangPypers] Django on Windows XP In-Reply-To: <3de8e1f70812072221l50b70ea0o4e64525e3f1bbcbc@mail.gmail.com> Message-ID: <386102.11104.qm@web52503.mail.re2.yahoo.com> Hi, Thanks ... Its done, I am able to setup the base Django application Thanks and Regards, Hussain Bohra --- On Mon, 8/12/08, Banibrata Dutta wrote: From: Banibrata Dutta Subject: Re: [BangPypers] Django on Windows XP To: hussainbohra_30 at yahoo.com, "Bangalore Python Users Group - India" Date: Monday, 8 December, 2008, 11:51 AM Google generally leads you too all answers anyway, and it's a gr8 idea to check there first.Via google, I found this:http://thinkhole.org/wp/2006/04/03/django-on-windows-howto/ On Mon, Dec 8, 2008 at 11:37 AM, Hussain Bohra wrote: Hi All, I am supposed to make a small application using a Django Framework of a Python. I have already installed and using Python 2.5, But I am not able to set up a Django in a Windows, as I am not able to find out the windows installer in net, what I am getting is only linux installer in http://www.djangoproject.com/download. I am trying to follow up the instruction provided in http://effbot.org/zone/django.htm, ?"Installing Django on Windows in less than 5 minutes". The steps what it is telling is: ===================== Assuming you have Python 2.4 or Python 2.5, exemaker, and the svn Subversion command-line client. Python 2.5?# In a command line window, do: cd C:\Python25\Lib\site-packages svn co http://code.djangoproject.com/svn/django/trunk/django cd django\bin exemaker django-admin.py Setting up Django?# Create a work directory, and use django-admin to create a project directory in there. mkdir c:\mytest cd c:\mytest django-admin startproject myproject --------------------------------------------------------------------------------------------------------- I have downloaded 'exemaker-1.2-20041012.zip' and 'svn-win32-1.5.4_py25.zip' from net but I didn't able to get how to use 'svn-win32-1.5.4_py25.zip', inorder to execute below commands successfully. Is 'svn-win32-1.5.4_py25.zip' is a correct package what I have downloaded, as I can found many packages at http://subversion.tigris.org/servlets/ProjectDocumentList?expandFolder=254&folderID=91 cd C:\Python25\Lib\site-packages svn co http://code.djangoproject.com/svn/django/trunk/django I am stuck here, Any advice or direction is really appreciable. Regards, Hussain Bohra Add more friends to your messenger and enjoy! Invite them now. _______________________________________________ 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 Get perfect Email ID for your Resume. Grab now http://in.promos.yahoo.com/address -------------- next part -------------- An HTML attachment was scrubbed... URL: From baiju at muthukadan.net Mon Dec 8 07:39:45 2008 From: baiju at muthukadan.net (baiju at muthukadan.net) Date: Mon, 8 Dec 2008 12:09:45 +0530 (IST) Subject: [BangPypers] [JOB] Python programmers required Message-ID: <53497.61.95.197.138.1228718385.squirrel@muthukadan.net> Hi All, I am working in ZeOmega Infotech Pvt. Ltd., Bangalore. We are looking for 2 to 3 years experienced Python programmers, the details are given below. If you are interested, please contact: bdeepa AT zeomega.com . Experience ========== 2 - 3 yrs Designation =========== Python Developer Skill set ========= Essential Skills ---------------- 1. Strong background in Python 2. Excellent debugging skills 3. Experience in building web applications 4. Proven ability to design and deliver custom solutions 5. Strong communication/collaboration/problem solving/documentation skills Desirable Skills ---------------- 1. Experience in Zope 2. Experience in RDBMS 3. Experience in JavaScript & CSS 4. Experience of working with GNU/Linux OS 5. Working knowledge of Subversion or any other VCS Roles and responsibility ======================== * Work in a team, building scalable health-care web applications * Analysis of problem domains and customer requirements * Deliver robust software components and solutions * Work with product group throughout development cycle to ensure quality of end product * Document code, track and fix bugs, respond rapidly to emergencies in production environment * Help writing project documentation, transition materials and training Regards, Baiju M From bharath.keshav at gmail.com Mon Dec 8 15:24:38 2008 From: bharath.keshav at gmail.com (Bharath Keshav) Date: Mon, 8 Dec 2008 19:54:38 +0530 Subject: [BangPypers] regarding static media server with Django(python web framework) and Apache. Message-ID: This is regarding production server with django web framework. Hence, not a pure pythonic question. I am using Django as web framework, and then, Apache and Lighttpd as web server and static media server respectively. Lighty serves all my static content well and good, but I need to configure it to serve the new files uploaded by the user. Lighttpd is running on a different machine from the Apache(Django) one. My django code of creating a directory and then creating an image file gets executed on my Apache machine, making it currently getting saved in the same machine itself. I want this directory and file creation happen on my static media server, which should then be served by the media server itself. I am using os.mkdir and urllib.urlretrieve python functions respectively to create directory and save files on the Django(Apache) machine. Is there anyway that I can do some configuration tweaking to get these things work or I need to write scripts on the media server and call them from Django machine?? Cheers, Bharath. -------------- next part -------------- An HTML attachment was scrubbed... URL: From abpillai at gmail.com Wed Dec 10 12:57:42 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Wed, 10 Dec 2008 17:27:42 +0530 Subject: [BangPypers] Python 3.0 Message-ID: <8548c5f30812100357p53f181cdje6bb90915098a9a2@mail.gmail.com> Looks like amid the gloom & doom around us, the release of Python 3.0 went unnoticed. Py3k was released a week ago on Dec 3rd officially. http://www.python.org/download/releases/3.0/ However, the language has undergone a lot of changes , both subtle and in-your-face. A number of familiar paradigms have changed (the most obvious is the "print" statement which has become a function). I guess Py3k will take quite take a couple of years at least to get adopted by most open source Python projects. Regards -- -Anand From venkat83 at gmail.com Wed Dec 10 13:15:47 2008 From: venkat83 at gmail.com (Venkatraman S) Date: Wed, 10 Dec 2008 17:45:47 +0530 Subject: [BangPypers] Python 3.0 In-Reply-To: <8548c5f30812100357p53f181cdje6bb90915098a9a2@mail.gmail.com> References: <8548c5f30812100357p53f181cdje6bb90915098a9a2@mail.gmail.com> Message-ID: On Wed, Dec 10, 2008 at 5:27 PM, Anand Balachandran Pillai < abpillai at gmail.com> wrote: > , both subtle and in-your-face. A number of familiar > paradigms have changed (the most obvious is the > "print" statement which has become a function). > The source converter does the changes (easily) from the older syntax - not a prob. Venkat Blog @ http://blizzardzblogs.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From connect2shashi at gmail.com Wed Dec 10 13:24:33 2008 From: connect2shashi at gmail.com (Shashi) Date: Wed, 10 Dec 2008 17:54:33 +0530 Subject: [BangPypers] Python 3.0 In-Reply-To: References: <8548c5f30812100357p53f181cdje6bb90915098a9a2@mail.gmail.com> Message-ID: <110ee9010812100424r12ddb276qa1035e597a9121b4@mail.gmail.com> but does it leave behind bugs and go helpless often? On Wed, Dec 10, 2008 at 5:45 PM, Venkatraman S wrote: > > On Wed, Dec 10, 2008 at 5:27 PM, Anand Balachandran Pillai > wrote: >> >> , both subtle and in-your-face. A number of familiar >> paradigms have changed (the most obvious is the >> "print" statement which has become a function). > > > The source converter does the changes (easily) from the older syntax - not a > prob. > > > Venkat > Blog @ http://blizzardzblogs.blogspot.com > > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- , , / \ ((__-^^-,-^^-__)) `_----' `-----_-' `--| o` 'o |--' \ ` / ): : ( :o__o: "---- " www.gnu.org www.uncorkers.org From hussainbohra_30 at yahoo.com Thu Dec 11 05:00:38 2008 From: hussainbohra_30 at yahoo.com (Hussain Bohra) Date: Wed, 10 Dec 2008 20:00:38 -0800 (PST) Subject: [BangPypers] Django on Windows XP -> Apache Server In-Reply-To: <3de8e1f70812072221l50b70ea0o4e64525e3f1bbcbc@mail.gmail.com> Message-ID: <186127.74007.qm@web52506.mail.re2.yahoo.com> Hi All, As of now I am able to setup Django with MySQL in Python 2.3. Now I have to use a Apache Server. I followed the instruction given in 'http://thinkhole.org/wp/2006/04/03/django-on-windows-howto/', Already Install apache_2.2.10-win32-x86-openssl-0.9.8i and mod_python-3.3.1.win32-py2.5-Apache2.0, But after Installation of Mod_Python, I am following this : ====================================== After the installer finishes, you still have one more thing to do. Open your Apache configuration file, usually located at C:\Program Files\Apache Group\Apache2\conf\httpd.conf with notepad. Scroll down and look for a section that includes a bunch of lines that start with LoadModule. Add the following line to that section: LoadModule python_module modules/mod_python.so Save the file and close it. Open up the Apache Service Monitor and click Restart. You should see the following text: The Apache2 service is restarting. The Apache2 service has restarted. If you get errors, you probably made a typo in the configuration file when you were editing it. Check it and try again. If you don?t have any errors, you should be all set.====================================== But I am still getting the following Error in error.log [Thu Dec 11 09:22:20 2008] [notice] Parent: Received restart signal -- Restarting the server. [Thu Dec 11 09:22:20 2008] [notice] Child 328: Exit event signaled. Child process is ending. httpd.exe: Syntax error on line 127 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/Program Files/Apache Software Foundation/Apache2.2/modules/mod_python.so into server: The specified procedure could not be found.? I tried googling on the same error, but din't able to solve the same. I have attached the httpd.conf and error.log of Apache Server 2.2 for further reference, and I verified that mod_python.so is present in a 'C:\Program Files\Apache Software Foundation\Apache2.2\modules' folder. Please let me know if any one have some idea. Thanks and Regards, Hussain Bohra --- On Mon, 8/12/08, Banibrata Dutta wrote: From: Banibrata Dutta Subject: Re: [BangPypers] Django on Windows XP To: hussainbohra_30 at yahoo.com, "Bangalore Python Users Group - India" Date: Monday, 8 December, 2008, 11:51 AM Google generally leads you too all answers anyway, and it's a gr8 idea to check there first.Via google, I found this:http://thinkhole.org/wp/2006/04/03/django-on-windows-howto/ On Mon, Dec 8, 2008 at 11:37 AM, Hussain Bohra wrote: Hi All, I am supposed to make a small application using a Django Framework of a Python. I have already installed and using Python 2.5, But I am not able to set up a Django in a Windows, as I am not able to find out the windows installer in net, what I am getting is only linux installer in http://www.djangoproject.com/download. I am trying to follow up the instruction provided in http://effbot.org/zone/django.htm, ?"Installing Django on Windows in less than 5 minutes". The steps what it is telling is: ===================== Assuming you have Python 2.4 or Python 2.5, exemaker, and the svn Subversion command-line client. Python 2.5?# In a command line window, do: cd C:\Python25\Lib\site-packages svn co http://code.djangoproject.com/svn/django/trunk/django cd django\bin exemaker django-admin.py Setting up Django?# Create a work directory, and use django-admin to create a project directory in there. mkdir c:\mytest cd c:\mytest django-admin startproject myproject --------------------------------------------------------------------------------------------------------- I have downloaded 'exemaker-1.2-20041012.zip' and 'svn-win32-1.5.4_py25.zip' from net but I didn't able to get how to use 'svn-win32-1.5.4_py25.zip', inorder to execute below commands successfully. Is 'svn-win32-1.5.4_py25.zip' is a correct package what I have downloaded, as I can found many packages at http://subversion.tigris.org/servlets/ProjectDocumentList?expandFolder=254&folderID=91 cd C:\Python25\Lib\site-packages svn co http://code.djangoproject.com/svn/django/trunk/django I am stuck here, Any advice or direction is really appreciable. Regards, Hussain Bohra Add more friends to your messenger and enjoy! Invite them now. _______________________________________________ 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 Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From hussainbohra_30 at yahoo.com Thu Dec 11 06:05:13 2008 From: hussainbohra_30 at yahoo.com (Hussain Bohra) Date: Wed, 10 Dec 2008 21:05:13 -0800 (PST) Subject: [BangPypers] Django on Windows XP -> Apache Server In-Reply-To: <186127.74007.qm@web52506.mail.re2.yahoo.com> Message-ID: <912973.49127.qm@web52503.mail.re2.yahoo.com> Hi All, Sorry to trouble you, it is done ... downloaded the wrong mod_python ... correct is 'mod_python-3.3.1.win32-py2.5-Apache2.2' Thanks and Regards, Hussain Bohra --- On Thu, 11/12/08, Hussain Bohra wrote: From: Hussain Bohra Subject: Re: [BangPypers] Django on Windows XP -> Apache Server To: "Bangalore Python Users Group - India" Date: Thursday, 11 December, 2008, 9:30 AM Hi All, As of now I am able to setup Django with MySQL in Python 2.3. Now I have to use a Apache Server. I followed the instruction given in 'http://thinkhole.org/wp/2006/04/03/django-on-windows-howto/', Already Install apache_2.2.10-win32-x86-openssl-0.9.8i and mod_python-3.3.1.win32-py2.5-Apache2.0, But after Installation of Mod_Python, I am following this : ====================================== After the installer finishes, you still have one more thing to do. Open your Apache configuration file, usually located at C:\Program Files\Apache Group\Apache2\conf\httpd.conf with notepad. Scroll down and look for a section that includes a bunch of lines that start with LoadModule. Add the following line to that section: LoadModule python_module modules/mod_python.so Save the file and close it. Open up the Apache Service Monitor and click Restart. You should see the following text: The Apache2 service is restarting. The Apache2 service has restarted. If you get errors, you probably made a typo in the configuration file when you were editing it. Check it and try again. If you don?t have any errors, you should be all set.====================================== But I am still getting the following Error in error.log [Thu Dec 11 09:22:20 2008] [notice] Parent: Received restart signal -- Restarting the server. [Thu Dec 11 09:22:20 2008] [notice] Child 328: Exit event signaled. Child process is ending. httpd.exe: Syntax error on line 127 of C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/Program Files/Apache Software Foundation/Apache2.2/modules/mod_python.so into server: The specified procedure could not be found.? I tried googling on the same error, but din't able to solve the same. I have attached the httpd.conf and error.log of Apache Server 2.2 for further reference, and I verified that mod_python.so is present in a 'C:\Program Files\Apache Software Foundation\Apache2.2\modules' folder. Please let me know if any one have some idea. Thanks and Regards, Hussain Bohra --- On Mon, 8/12/08, Banibrata Dutta wrote: From: Banibrata Dutta Subject: Re: [BangPypers] Django on Windows XP To: hussainbohra_30 at yahoo.com, "Bangalore Python Users Group - India" Date: Monday, 8 December, 2008, 11:51 AM Google generally leads you too all answers anyway, and it's a gr8 idea to check there first.Via google, I found this:http://thinkhole.org/wp/2006/04/03/django-on-windows-howto/ On Mon, Dec 8, 2008 at 11:37 AM, Hussain Bohra wrote: Hi All, I am supposed to make a small application using a Django Framework of a Python. I have already installed and using Python 2.5, But I am not able to set up a Django in a Windows, as I am not able to find out the windows installer in net, what I am getting is only linux installer in http://www.djangoproject.com/download. I am trying to follow up the instruction provided in http://effbot.org/zone/django.htm, ?"Installing Django on Windows in less than 5 minutes". The steps what it is telling is: ===================== Assuming you have Python 2.4 or Python 2.5, exemaker, and the svn Subversion command-line client. Python 2.5?# In a command line window, do: cd C:\Python25\Lib\site-packages svn co http://code.djangoproject.com/svn/django/trunk/django cd django\bin exemaker django-admin.py Setting up Django?# Create a work directory, and use django-admin to create a project directory in there. mkdir c:\mytest cd c:\mytest django-admin startproject myproject --------------------------------------------------------------------------------------------------------- I have downloaded 'exemaker-1.2-20041012.zip' and 'svn-win32-1.5.4_py25.zip' from net but I didn't able to get how to use 'svn-win32-1.5.4_py25.zip', inorder to execute below commands successfully. Is 'svn-win32-1.5.4_py25.zip' is a correct package what I have downloaded, as I can found many packages at http://subversion.tigris.org/servlets/ProjectDocumentList?expandFolder=254&folderID=91 cd C:\Python25\Lib\site-packages svn co http://code.djangoproject.com/svn/django/trunk/django I am stuck here, Any advice or direction is really appreciable. Regards, Hussain Bohra Add more friends to your messenger and enjoy! Invite them now. _______________________________________________ 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 Unlimited freedom, unlimited storage. Get it now_______________________________________________ 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 abpillai at gmail.com Thu Dec 11 07:39:53 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 11 Dec 2008 12:09:53 +0530 Subject: [BangPypers] Currying in Python 3.0 Message-ID: <8548c5f30812102239x7557100csc0ba70d461dad391@mail.gmail.com> The new functools module in Python provides a neat API for doing function currying and doing some other FP tricks. The functools.partial function allows you to create "partial" functions which chops off an argument from the beginning of the argument list. Simple example. >>> def f(x,y): return x + y >>> import functools.partial >>> >>> p = functools.partial(f, 10) >>> p(20) 30 >>> p(30) 40 This can be extended to do more interesting stuff like, # Defining a generic summing function which accepts another # function and applies it to every element of a sequence before # summing them >>> def summer(func, l): ... return sum([func(item) for item in l]) Now the summer can be used with partial to create specific summing functions. Examples, >>> simplesummer = functools.partial(summer, lambda x: x) >>> simplesummer([1,2,3,4]) 10 >>> sqrsummer = functools.partial(summer, lambda x: x*x) >>> sqrsummer([1,2,3,4,5]) 55 This allows to write parametrized functions which take in a parameter and returns the correct summing function. Example. >>> def create_summer(typ): ... if typ==0: return functools.partial(summer, lambda x: x) ... elif typ==1: return functools.partial(summer, lambda x:x*x) And do stuff like, >>> create_summer(0)([1,2,3,4]) 10 >>> create_summer(1)([1,2,3,4]) 30 Finally, this makes implementing "currying" in Python almost trivial. The following is a generic currying function in Python, which "curries" the passed function . >>> def curry(f, *args): ... return functools.partial(f, *args) So, if you have a function which accepts four arguments, say >>> curry(curry(f, 10), 20) >>> curry(curry(curry(f, 10), 20), 30) >>> curry(curry(curry(curry(f, 10), 20), 30), 40) >>> def f(a,b,c,d): return a + b + c + d >>> curry(curry(curry(curry(f, 10), 20), 30), 40)() 100 # When extended to operators, it allows some more neat tricks. >>> mul7= curry(operator.mul, 7) >>> mul7(2) 14 >>> mul7(21) 147 Of course, the above can all be done in Python <3.0 using lambda, but functools.partial makes it look neater. Regards -- -Anand From abpillai at gmail.com Thu Dec 11 07:42:48 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Thu, 11 Dec 2008 12:12:48 +0530 Subject: [BangPypers] Currying in Python 3.0 In-Reply-To: <8548c5f30812102239x7557100csc0ba70d461dad391@mail.gmail.com> References: <8548c5f30812102239x7557100csc0ba70d461dad391@mail.gmail.com> Message-ID: <8548c5f30812102242u5f39be12ud05deab00f5c1d@mail.gmail.com> On Thu, Dec 11, 2008 at 12:09 PM, Anand Balachandran Pillai wrote: > > So, if you have a function which accepts four arguments, say > >>>> curry(curry(f, 10), 20) > >>>> curry(curry(curry(f, 10), 20), 30) > >>>> curry(curry(curry(curry(f, 10), 20), 30), 40) > >>>> def f(a,b,c,d): return a + b + c + d >>>> curry(curry(curry(curry(f, 10), 20), 30), 40)() > 100 Forgot to write the function. It is, >>> def f(a,b,c,d): return a + b + c + d -- -Anand From jeff at taupro.com Thu Dec 11 08:11:57 2008 From: jeff at taupro.com (Jeff Rush) Date: Thu, 11 Dec 2008 01:11:57 -0600 Subject: [BangPypers] Currying in Python 3.0 In-Reply-To: <8548c5f30812102239x7557100csc0ba70d461dad391@mail.gmail.com> References: <8548c5f30812102239x7557100csc0ba70d461dad391@mail.gmail.com> Message-ID: <4940BD3D.7050506@taupro.com> Anand Balachandran Pillai wrote: > The new functools module in Python provides a neat > API for doing function currying and doing some other > FP tricks. > Of course, the above can all be done in Python <3.0 using lambda, > but functools.partial makes it look neater. I haven't looked at Python 3.0 yet much to see if they have changed functools but the functools module exists in Python 2.5. Don't overlook that the functools.partial function supports keyword arguments, and that classes are callables so functools.partial can manipulate them as well: class GenericWindow: def __init__(self, name, width, height, color='white'): pass you can conceptually subclass it without using a class: TinyWindow = functools.partial(GenericWindow, width=100, height=40) and then use it: msgwindow = TinyWindow('errors') It is like default arguments but more flexible in that you can decide on the defaults at runtime not definition time. You can also use closures to get some of the same benefits, of parameterizing code itself: def salary_above(amount): def wages_test(person): return person.salary > amount return wages_test is_paygrade1 = salary_above(20000) is_paygrade2 = salary_above(40000) if is_paygrade1(john): ... with functools.partial this would instead be: def wages_test(person, amount): return person.salary > amount is_paygrade1 = functools.partial(wages_test, amount=20000) is_paygrade2 = functools.partial(wages_test, amount=40000) Using partial lets you place the customization away from the function being customized, in case it isn't your function, unlike closures. But the closure is probably faster to execute. And (pardon my enthusiasm, but early-binding is cool) like the GenericWindow class example above you can also conceptually create new functions without declaring functions: is_allowed = { # set of allowable headers 'HTTP_AUTHORIZATION': 1, 'HTTP_CGI_AUTHORIZATION': 1, }.has_key if is_allowed('HTTP_AUTHORIZATION'): ... Python is fun to play around with and try to expand your view of what programming is. ;-) -Jeff From pythonic at gmail.com Thu Dec 11 08:48:52 2008 From: pythonic at gmail.com (Shekhar) Date: Thu, 11 Dec 2008 13:18:52 +0530 Subject: [BangPypers] Currying in Python 3.0 In-Reply-To: <8548c5f30812102239x7557100csc0ba70d461dad391@mail.gmail.com> References: <8548c5f30812102239x7557100csc0ba70d461dad391@mail.gmail.com> Message-ID: <4940C5E4.1010705@gmail.com> > > Of course, the above can all be done in Python <3.0 using lambda, > but functools.partial makes it look neater. > functools.partial is present in Python 2.5 or above. > Regards > > From vsapre80 at gmail.com Tue Dec 16 12:51:02 2008 From: vsapre80 at gmail.com (Vishal) Date: Tue, 16 Dec 2008 17:21:02 +0530 Subject: [BangPypers] has anybody used PyChecker or PyLint Message-ID: Hi, I am looking for a good lint tool for Python, and came across PyChecker and PyLint. has anybody used them? In their current forms, they seem to have internal errors. Any other solution...apart from lots of testing.. Vishal -- - "Day by day, in every way, I am getting better, better and better !!!" - "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 amitsaha.in at gmail.com Wed Dec 17 09:00:51 2008 From: amitsaha.in at gmail.com (Amit k. Saha) Date: Wed, 17 Dec 2008 13:30:51 +0530 Subject: [BangPypers] [OT]Hello from a new member! Message-ID: <547db2260812170000wb0bdd84y5404b6f40fc9db10@mail.gmail.com> Hello Bangpypers! I am new to this list :-), so saying a Hello! -Amit -- Amit Kumar Saha http://amitksaha.blogspot.com http://amitsaha.in.googlepages.com/ Skype: amitkumarsaha From vijay750 at gmail.com Wed Dec 17 12:43:06 2008 From: vijay750 at gmail.com (Vijay Ramachandran) Date: Wed, 17 Dec 2008 17:13:06 +0530 Subject: [BangPypers] help using mysqldb Message-ID: <5f4d8a540812170343v7f794980rd8e91061a3bf2951@mail.gmail.com> Hello. I'm unable to figure out how to use mysqldb (actually, dbabi) to write an "in" query. For instance, suppose my table looks like this: Employee( id int not null primary key, name varchar(32) not null) ); Suppose I have a list of ids, I would write sql such as 'select * from Employee where id in (id1, id2, id3)' and this would work even if there was only one id, say, 'select * from Employee where id in (id1)' How should I do this in MySQLdb? It seems that I need to handle single entry list differently from a list with multiple elements? i.e., this code below works: ids = [1, 2, 3] if len(ids) > 1: cur.execute('select * from Employee where id in %s', tuple(ids)) else: cur.execute('select * from Employee where id = %s', ids[0]) but it doesn't seem right. What's the correct way to run this query? thanks, Vijay -------------- next part -------------- An HTML attachment was scrubbed... URL: From sidharth.kuruvila at gmail.com Wed Dec 17 12:59:27 2008 From: sidharth.kuruvila at gmail.com (Sidharth Kuruvila) Date: Wed, 17 Dec 2008 17:29:27 +0530 Subject: [BangPypers] help using mysqldb In-Reply-To: <5f4d8a540812170343v7f794980rd8e91061a3bf2951@mail.gmail.com> References: <5f4d8a540812170343v7f794980rd8e91061a3bf2951@mail.gmail.com> Message-ID: <2ab2ed550812170359x10207cb7w95278df92da84b12@mail.gmail.com> Do this instead cur.execute('select * from Employee where id in (%s)', ids.join(', ')); On Wed, Dec 17, 2008 at 5:13 PM, Vijay Ramachandran wrote: > Hello. > > I'm unable to figure out how to use mysqldb (actually, dbabi) to write an > "in" query. > > For instance, suppose my table looks like this: > Employee( > id int not null primary key, > name varchar(32) not null) > ); > > Suppose I have a list of ids, I would write sql such as > 'select * from Employee where id in (id1, id2, id3)' and this would work > even if there was only one id, say, 'select * from Employee where id in > (id1)' > > How should I do this in MySQLdb? It seems that I need to handle single > entry list differently from a list with multiple elements? i.e., this code > below works: > > > ids = [1, 2, 3] > if len(ids) > 1: > cur.execute('select * from Employee where id in %s', tuple(ids)) > else: > cur.execute('select * from Employee where id = %s', ids[0]) > > but it doesn't seem right. What's the correct way to run this query? > > thanks, > Vijay > > _______________________________________________ > BangPypers mailing list > BangPypers at python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- I am but a man. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeff at taupro.com Wed Dec 17 14:06:28 2008 From: jeff at taupro.com (Jeff Rush) Date: Wed, 17 Dec 2008 07:06:28 -0600 Subject: [BangPypers] help using mysqldb In-Reply-To: <5f4d8a540812170343v7f794980rd8e91061a3bf2951@mail.gmail.com> References: <5f4d8a540812170343v7f794980rd8e91061a3bf2951@mail.gmail.com> Message-ID: <4948F954.2030002@taupro.com> Vijay Ramachandran wrote: > > Suppose I have a list of ids, I would write sql such as > 'select * from Employee where id in (id1, id2, id3)' and this would work > even if there was only one id, say, 'select * from Employee where id in > (id1)' > > How should I do this in MySQLdb? It seems that I need to handle single > entry list differently from a list with multiple elements? You may find the bit of additional software at the following site useful. It has a slide presentation that talks about this and similar issues and delivers a lightweight solution. http://furius.ca/antiorm/ The presentation slides are very good and bring up some interesting ideas. http://furius.ca/antiorm/doc/talks/dbapiext/dbapiext-pres.pdf -Jeff From arathi at global-analytics.com Thu Dec 18 06:54:54 2008 From: arathi at global-analytics.com (Arathi Krishnakumar) Date: Thu, 18 Dec 2008 11:24:54 +0530 Subject: [BangPypers] [JOB] attn Python experts! Message-ID: <010401c960d5$292a5330$0301a8c0@arathilt> Hi Team, Please find an interesting career for Python experts with Global Analytics, a Chennai based analytics firm. Job Desc: Will be a lead/key contributor for the UI development in Python and Django. Will be the chief UI liason with US team on this phase of product development. Will get ample freedom to try out different tools; Dream job for a Techie. Global Analytics, the LEADER in analytics is looking for a senior software engineer to join the exciting team that is building the SMARTEST software in the world. And it takes SMART software people to build SMART software. So we want YOU! You are a great software engineer, with knowledge of one or more modern computing languages. You are tired of being a small cog in a big organization. You want to make a difference. You want to lead. You want to dive into the FASTEST GROWING segment of software in India -- real-time analytic and predictive software! You want to be ahead of the curve, not behind. You are a risk taker. You are aggressive. And most importantly, you are really, really SMART. Profile Description: Qualification: B.E/B. Tech/M.S in computer science or equivalent (Prefer from top schools) Skill Set: -Experience working in Python, Django & JavaScript. -Good Knowledge in Object oriented programming -Knowledge of Struts, Servlets, JSP, PHP will be useful. -Knowledge of multiple web frameworks -Good GUI design skills, particularly for web-based applications with Rich Client interfaces. -Creative thinker and Willingness to strike out into unexplored territories. -Excellent oral and written communication skills. -Strong analytical and problem solving skills. -Self-motivated and ability to learn quickly. Interested techies can forward their resume to arathi at global-analytics.com. Who are we? Global Analytics India is fully owned subsidiary of Global Analytics, a San Diego, CA based strategic consulting company backed by the power of advanced Analytics. We offer our customers exceptional technical expertise in statistical analysis, predictive modeling & neural networks. Global Analytics India has a strong technical presence of 100 advanced statisticians, modelers and software engineers, drawn from premier Indian universities through the rigorous selection process. Regards ARATHI KRISHNAKUMAR | HUMAN RESOURCES | GLOBAL ANALYTICS INDIA (P) Ltd | Mobile: +91 9940667132| Email ID: arathi at global-analytics.com | www.global-analytics.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From veena06ramesh at gmail.com Thu Dec 18 08:26:39 2008 From: veena06ramesh at gmail.com (Veena Ramakrishna) Date: Thu, 18 Dec 2008 12:56:39 +0530 Subject: [BangPypers] Python Developers Required to Amstredam, Netherlands In-Reply-To: <165911c0812172311y518c14ajb771ebb5c4a92720@mail.gmail.com> References: <165911c0812172311y518c14ajb771ebb5c4a92720@mail.gmail.com> Message-ID: <165911c0812172326t657f1bfcs3e49f6d73ebb3c68@mail.gmail.com> > Required Developers studied at Europe & USA for i-Knowledge, Amsterdam, > Netherlands > Required : Developer > > Education : > > - Basic requirements > - MCA/MSc/B-tech at least 80% score > - Special > - Studied abroad (US, Europe) > - Has achieved something special > - honor society > - gold medal > > Previous employers > > - Large web 2.0 firm: google, yahoo, amazon > - Product-company > - Bad signs: > - Working too long for service companies > - Working on intranet applications > - At least 5+ years of working experience as Team lead > > > > Skills : > > - Special tags: > - Python with strong project experience > - C++, VC++ with strong project experience > - Ruby on Rails > - Windows programming > - Mobile device programming > > Projects : > > - If candidate has only done basic web projects: no hire > - Good projects: > - Search > - Product development > - Web 2.0 large-scale sites > - Financial transactions &ecommerce > - Open-source > > > *Contact :* Veena Ramesh > *Mobile : *9739833790 > > *Phone : *080 32479187 > ** > > Veena Ramesh / Recruiter / India / Bangalore veena06ramesh at gmail.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ramkrsna at gmail.com Thu Dec 18 08:31:15 2008 From: ramkrsna at gmail.com (Ramakrishna Reddy) Date: Thu, 18 Dec 2008 13:01:15 +0530 Subject: [BangPypers] Python Developers Required to Amstredam, Netherlands In-Reply-To: <165911c0812172326t657f1bfcs3e49f6d73ebb3c68@mail.gmail.com> References: <165911c0812172311y518c14ajb771ebb5c4a92720@mail.gmail.com> <165911c0812172326t657f1bfcs3e49f6d73ebb3c68@mail.gmail.com> Message-ID: Hi On Thu, Dec 18, 2008 at 12:56 PM, Veena Ramakrishna wrote: > >> Required Developers studied at Europe & USA for i-Knowledge, Amsterdam, >> Netherlands It would be apperciated before posting jobs to tag it with [Commericial] or [Jobs] to the list. regards -- Ramakrishna Reddy GPG Key ID:31FF0090 Fingerprint = 18D7 3FC1 784B B57F C08F 32B9 4496 B2A1 31FF 0090 From hussainbohra_30 at yahoo.com Thu Dec 18 11:44:43 2008 From: hussainbohra_30 at yahoo.com (Hussain Bohra) Date: Thu, 18 Dec 2008 02:44:43 -0800 (PST) Subject: [BangPypers] Django URLs -> New URLs are getting appended with the previous one Message-ID: <976102.64646.qm@web52502.mail.re2.yahoo.com> Hi All, I am trying my hands in a Django with a small application, I am making one login page and acceptance / failure of a user name and password. My functions for same: How Submit button is Contructing def SubmitButton() return '' % (self.name, self.label) views.py from django.http import HttpResponse from html_tags import * def loginPage(request) : title = ('Hi, Welcome ',"") text1 = ("Enter Your Name", "%s"%(toHTML(TextField('name')))) text2 = ("Enter Your Password","%s"%(toHTML(TextField('password',type='password')))) buttons = (toHTML(SubmitButton('init','Login')),CloseButton('Close')) content = toHTML( Table([title, text1, text2, buttons] )) ret = '
' ret += content ret += '
' return HttpResponse(ret) def initialize(request): get = request.GET.__copy__() name = smart_str(get.pop('name')[0]) password = smart_str(get.pop('password')[0]) ret = '
' #request.META.update({'HTTP_REFERER' : 'http://127.0.0.1:8000/'}) if name == 'hussain.bohra' and password == 'password' : ret += toHTML( Table([('Authorization Successful.',""), ('You can further proceed',"") ]) ) else : ret += toHTML( Table([('Authorization Failed.',""), (toHTML(SubmitButton('login','Back')),"") ]) ) ret += '
' return HttpResponse(ret) and I have mapped a url with these functions, in a url.py file for Django Project. (r'^init/$', 'myproject.views.initialize'), (r'^login/$', 'myproject.views.loginPage'), The problem I am facing here is when I am accessing http://127.0.0.1:8000/login my loginPage function will get called, if I do a submit, url trying to open is http://127.0.0.1:8000/login/init .... instead of http://127.0.0.1:8000/init, in that case I have to map /login/init with my initialize function instead of /init and if from http://127.0.0.1:8000/login/init I want to back to login page using my button, url appears as http://127.0.0.1:8000/login/init/login, i.e. all the previous url it is keeping. but if I make my own webserver (override do_GET and do_POST function), there my self.path (which contains URL), is coming properly, i.e. /login, /init .... In Django, also I able to fix the same by making a small change in 'C:\Python25\Lib\site-packages\django\core\handlers\wsgi.py' file by splitting the url and by getting the last instance and by putting in self.path. But this is not a right way to do the same, is any one know what else can be done for the same, so that the urls should not carry forward. I tried changing the request.META.['PATH_INFO'] = u'/', in my functions, but this also doesn't able to solve the issue. Thanks and Regards, Hussain Bohra Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From rajeev.sebastian at gmail.com Mon Dec 22 03:40:33 2008 From: rajeev.sebastian at gmail.com (Rajeev J Sebastian) Date: Mon, 22 Dec 2008 08:10:33 +0530 Subject: [BangPypers] Django URLs -> New URLs are getting appended with the previous one In-Reply-To: <976102.64646.qm@web52502.mail.re2.yahoo.com> References: <976102.64646.qm@web52502.mail.re2.yahoo.com> Message-ID: <79a035420812211840u2259ed11n2bfa5a6e6a850341@mail.gmail.com> On Thu, Dec 18, 2008 at 4:14 PM, Hussain Bohra wrote: > Hi All, > > I am trying my hands in a Django with a small application, I am making one > login page and acceptance / failure of a user name and password. Hi Hussain, There are a number of issues with the code you posted. You might want to try adding an attribute to the form element:
...
This ensures it will post to the right URL. Also, there are *much* better ways to do most of what you are trying in that snippet. I would suggest that you go through the django tutorial and book. Regards Rajeev J Sebastian From abpillai at gmail.com Mon Dec 22 05:28:44 2008 From: abpillai at gmail.com (Anand Balachandran Pillai) Date: Mon, 22 Dec 2008 09:58:44 +0530 Subject: [BangPypers] Python Developers Required to Amstredam, Netherlands In-Reply-To: References: <165911c0812172311y518c14ajb771ebb5c4a92720@mail.gmail.com> <165911c0812172326t657f1bfcs3e49f6d73ebb3c68@mail.gmail.com> Message-ID: <8548c5f30812212028w1870d286qd6cc8ea155452f87@mail.gmail.com> Also, visit the website of the company and do some initial investigation before blindly sending off your resumes. Headhunters often does not post it so do some googling yourselves. In this case it is www.iknowledge.nl. --Anand On Thu, Dec 18, 2008 at 1:01 PM, Ramakrishna Reddy wrote: > Hi > > On Thu, Dec 18, 2008 at 12:56 PM, Veena Ramakrishna > wrote: >> >>> Required Developers studied at Europe & USA for i-Knowledge, Amsterdam, >>> Netherlands > > > > It would be apperciated before posting jobs to tag it with > [Commericial] or [Jobs] to the list. > > regards > -- > 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 > -- -Anand From valliappan.mba at gmail.com Wed Dec 24 12:22:41 2008 From: valliappan.mba at gmail.com (Valliappan Ramanathan) Date: Wed, 24 Dec 2008 16:52:41 +0530 Subject: [BangPypers] [JOB] Freelance python and django trainer required for a Chennai based company Message-ID: We are a Chennai based project based company handling technologies like php.java, dotnet and we are also in to other services like engineering designing and flash programming. Training is for about 5 to 10 of programmers(experienced in php) for python and Django development. Training to cover to start with basic concepts, step by step leading to advanced concepts. As our programmers are skilled in programming , they can grasp the concept with minimum guidance or support in person and online. Looking forward to your available dates and the quotes for training program. Our new facility: U Software Systems India Pvt. Ltd., Kilpauk, Near Ega Theatre Chennai -600 010. INDIA thank you Valliappan HR, U Software Systems Phone: +91-44-4285 9369 Phone:044-6462 1630 -- Truly, Valliappan Ramanathan -------------- next part -------------- An HTML attachment was scrubbed... URL: From vsapre80 at gmail.com Wed Dec 24 12:22:47 2008 From: vsapre80 at gmail.com (Vishal) Date: Wed, 24 Dec 2008 16:52:47 +0530 Subject: [BangPypers] Fwd: AID conference at Bangalore this weekend In-Reply-To: <4951DEEF.9050504@oracle.com> References: <4951DEEF.9050504@oracle.com> Message-ID: This conference is being held in Bangalore. The talk on FreeSoftware might be interesting and hence forwarded here. The annual conference of AID-India (http://aidindia.org) is being held in Bangalore from Friday December 26 to Sunday December 28, 2008. It will involve accomplished social activists, field workers and researchers, apart from volunteers from chapters around the world. Venue: ----- Indian Social Institute (ISI), 24, Benson Road, Benson Town, Bangalore 560046. Phone: 080 - 23536189/23536364/23536960 Details and registration: ------------------------ Visit http://conference.aidindia.org or call Guru 98452 94184 (Note that you need not register a-priory to attend the conference). ******** Saturday, December 27, 2008 ******** Time slot: 2pm ? 3pm Topic: Software freedom Speaker: Lawrence Liang, legal researcher and lawyer, Founder of the Alternative Law Forum (ALF) ---------- Forwarded message ---------- From: Arvind Rajaram Date: Wed, Dec 24, 2008 at 12:34 PM Subject: AID conference at Bangalore this weekend To: maalolan at yahoo.com, suda_77 at yahoo.com, shailabh_nagar at yahoo.com, sandhya_sago at yahoo.com, vsapre80 at gmail.com, dnguru at gmail.com, sudhanagavarapu at yahoo.com, harsha.shedbalkar at gmail.com The annual conference of AID-India (http://aidindia.org) is being held in Bangalore from Friday December 26 to Sunday December 28, 2008. It will involve accomplished social activists, field workers and researchers, apart from volunteers from chapters around the world. Topics as diverse as globalization, gender equality, climate change, free software, communalism/terrorism and agriculture will be deliberated upon, under the guidance of eminent speakers. The objective the conference is two fold: to share the outstanding work of many change agents to a wider audience and to better-equip the existing/potential change makers in taking on the challenges that lie on the path of just and sustainable development. Please make time to be there! Venue: ----- Indian Social Institute (ISI), 24, Benson Road, Benson Town, Bangalore 560046. Phone: 080 - 23536189/23536364/23536960 Details and registration: ------------------------ Visit http://conference.aidindia.org or call Guru 98452 94184 (Note that you need not register a-priory to attend the conference). Some of the topics and speakers: -------------------------------- ******** Friday, December 26, 2008 ******** Time slot: 10:15 am ? 11:15 am Topic: The story of a senior activist couple Speaker: Dr. Ravi and Dr. Thelma Narayan, founders of the Community Health Cell (CHC) Time slot: 5:15pm ? 7pm Topic: Globalization and the current crisis Speaker: Dr. Venkatesh Athreya, internationally recognized figure in Economics ******** Saturday, December 27, 2008 ******** Time slot: 9:30 am - 11:15 am Topic: food security and agricultural issues Speaker: AID saathis (who have extensive grassroots experience) Time slot: 11:30 am ? 1 pm Topic: Gender equality Speaker: Devaki Jain, development economist and activist Time slot: 2pm ? 3pm Topic: Software freedom Speaker: Lawrence Liang, legal researcher and lawyer, Founder of the Alternative Law Forum (ALF) Time slot: 4pm ? 5pm Topic: Climate change and the role of individuals Speaker: Vinuta Gopal, climate and energy campaigner, Greenpeace ******** Sunday, December 28, 2008 ******** Time slot: 10:30am ? 12:30 pm Topic: Communalism and Terrorism Speaker: Dr Sitharam Kakarala, Centre for the Study of Culture and Society (CSCS), Bangalore PS: AID thanks Juniper Networs and National Semiconductor for the sponsorship and http://citizenmatters.in for the wishes. -- - "Day by day, in every way, I am getting better, better and better !!!" - "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 valliappan.mba at gmail.com Wed Dec 24 12:28:50 2008 From: valliappan.mba at gmail.com (Valliappan Ramanathan) Date: Wed, 24 Dec 2008 16:58:50 +0530 Subject: [BangPypers] [Training] Training required for python and django for a Chennai based company Message-ID: We are a Chennai based project based company handling technologies like php.java, dotnet and we are also in to other services like engineering designing and flash programming. Training is for about 5 to 10 of programmers(experienced in php) for python and Django development. Training to cover to start with basic concepts, step by step leading to advanced concepts. As our programmers are skilled in programming , they can grasp the concept with minimum guidance or support in person and online. Looking forward to your available dates and the quotes for training program. Our new facility: U Software Systems India Pvt. Ltd., Kilpauk, Near Ega Theatre Chennai -600 010. INDIA thank you Valliappan HR, U Software Systems Phone: +91-44-4285 9369 Phone:044-6462 1630 Email: valliappan at poweredbyu.com -- Truly, Valliappan Ramanathan -------------- next part -------------- An HTML attachment was scrubbed... URL: From vijay750 at gmail.com Wed Dec 24 13:40:58 2008 From: vijay750 at gmail.com (Vijay Ramachandran) Date: Wed, 24 Dec 2008 18:10:58 +0530 Subject: [BangPypers] help using mysqldb Message-ID: <5f4d8a540812240440m489d37f6k4e8578acfc9f6251@mail.gmail.com> On Thu, Dec 18, 2008 at 11:31 AM, wrote: > From: Jeff Rush > You may find the bit of additional software at the following site useful. > It > has a slide presentation that talks about this and similar issues and > delivers > a lightweight solution. > > http://furius.ca/antiorm/ > > The presentation slides are very good and bring up some interesting ideas. > > http://furius.ca/antiorm/doc/talks/dbapiext/dbapiext-pres.pdf > > Thank you for the pointers, they were very helpful. I finally got down to reading about antiorm, and dbapiext seems to solve my problems! Its interesting that such a common is missing from the dbapi pep. regards, Vijay -------------- next part -------------- An HTML attachment was scrubbed... URL: From vijay750 at gmail.com Wed Dec 24 13:42:27 2008 From: vijay750 at gmail.com (Vijay Ramachandran) Date: Wed, 24 Dec 2008 18:12:27 +0530 Subject: [BangPypers] help using mysqldb Message-ID: <5f4d8a540812240442y76b5b122x6974d89fc176223c@mail.gmail.com> On Thu, Dec 18, 2008 at 11:31 AM, wrote: > From: "Sidharth Kuruvila" > > Do this instead > > cur.execute('select * from Employee where id in (%s)', ids.join(', ')); > > I would need to co-erce my id into a string rep to do this. I guess that's ok? Also, will the escaping be taken care of if the type of id was a string? thanks, Vijay -------------- next part -------------- An HTML attachment was scrubbed... URL: From bharat_pathak at hotmail.com Wed Dec 24 13:57:40 2008 From: bharat_pathak at hotmail.com (Bharat Pathak) Date: Wed, 24 Dec 2008 18:27:40 +0530 Subject: [BangPypers] [JOB] Freelance python and django trainer required fora Chennai based company In-Reply-To: References: Message-ID: Are you offering training or you want training. About myself, My name is Bharat Pathak and I am owner of Arithos Designs, mainly into DSP Design Consultancy and Training. My special interest in Python is for digital signal processing and image/video processing applications. We do trainings for corporates and individuals too. Regards Bharat Pathak Arithos Designs www.Arithos.com DSP Design Consultancy and Training Company. From: Valliappan Ramanathan Sent: Wednesday, December 24, 2008 4:52 PM To: bangpypers at python.org Subject: [BangPypers] [JOB] Freelance python and django trainer required fora Chennai based company We are a Chennai based project based company handling technologies like php.java, dotnet and we are also in to other services like engineering designing and flash programming. Training is for about 5 to 10 of programmers(experienced in php) for python and Django development. Training to cover to start with basic concepts, step by step leading to advanced concepts. As our programmers are skilled in programming , they can grasp the concept with minimum guidance or support in person and online. Looking forward to your available dates and the quotes for training program. Our new facility: U Software Systems India Pvt. Ltd., Kilpauk, Near Ega Theatre Chennai -600 010. INDIA thank you Valliappan HR, U Software Systems Phone: +91-44-4285 9369 Phone:044-6462 1630 -- Truly, Valliappan Ramanathan -------------------------------------------------------------------------------- _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers -------------- next part -------------- An HTML attachment was scrubbed... URL: From sibteym at infotechsw.com Mon Dec 29 11:30:17 2008 From: sibteym at infotechsw.com (Sibtey Mehdi) Date: Mon, 29 Dec 2008 16:00:17 +0530 Subject: [BangPypers] problem regarding opening a html File Message-ID: <022201c969a0$717fe220$5fc513ac@pwit.com> Hi I have a GUI application (wxpython) that calls another GUI Application. I m using os.system (cmd) to launch The second GUI, in the second GUI I m trying to open the html file using the os.startfile (filename) function but It takes lots of time to open the html file. If I am running only the second application then 'os.startfile' quickly open the html file. Any one can help me to solve this problem. Thanks. Sibtey -------------- next part -------------- An HTML attachment was scrubbed... URL: From parth.technofreak at gmail.com Mon Dec 29 12:00:58 2008 From: parth.technofreak at gmail.com (Parthan SR) Date: Mon, 29 Dec 2008 16:30:58 +0530 Subject: [BangPypers] problem regarding opening a html File In-Reply-To: <022201c969a0$717fe220$5fc513ac@pwit.com> References: <022201c969a0$717fe220$5fc513ac@pwit.com> Message-ID: <4958ADEA.7010900@gmail.com> Sibtey Mehdi wrote: > > Hi > > I have a GUI application (wxpython) that calls another GUI > Application. I m using *os.system (cmd) *to launch > > The second GUI*, *in the second GUI I m trying to open the html file > using the os.startfile (filename) function but > > It takes lots of time to open the html file. > > Can't you just import the second gui app's frame/dialog class and display it whenever you need it by executing the .Show(True) in the class's instance? -- --- With Regards, Parthan "technofreak" 2FF01026 http://blog.technofreak.in From sibteym at infotechsw.com Mon Dec 29 13:08:13 2008 From: sibteym at infotechsw.com (Sibtey Mehdi) Date: Mon, 29 Dec 2008 17:38:13 +0530 Subject: [BangPypers] problem regarding opening a html File In-Reply-To: <4958ADEA.7010900@gmail.com> References: <022201c969a0$717fe220$5fc513ac@pwit.com> <4958ADEA.7010900@gmail.com> Message-ID: <024201c969ae$20198860$5fc513ac@pwit.com> My requirement is the control should not come to the first GUI unless and until the second frame is closed. > > Hi > > I have a GUI application (wxpython) that calls another GUI > Application. I m using *os.system (cmd) *to launch > > The second GUI*, *in the second GUI I m trying to open the html file > using the os.startfile (filename) function but > > It takes lots of time to open the html file. > > Can't you just import the second gui app's frame/dialog class and display it whenever you need it by executing the .Show(True) in the class's instance? -- --- With Regards, Parthan "technofreak" 2FF01026 http://blog.technofreak.in _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers