While i was working on the project onspot_v2, i came across with a specific need. onspot_v2 makes use of the django admin interface for data entry. When employees are entering data, ‘branch’ field in the form will get populated automatically as per the branch of the employee. When a manager is entering data using the [...]
Posts Tagged ‘Python’
Making a field in a django admin form visible or invisible depending on the user
Posted in django, Howtos, Python, tagged add_view, django admin, django form, Python on May 9, 2012 | Leave a Comment »
Python script that ranks Hollywood actors based on number of appearances in top 100 movies
Posted in Python, Scripts, tagged actors ranking, codejam, imdb, imdbpy, Python on June 15, 2011 | 3 Comments »
Actually this is a sample question appeared in codejam contest conducted by mobme wireless. Imdbpy python module is used to retrieve movie informations from imdb. For those who don’t know about this event : http://codejam.mobme.in/ Sample Question : Write a program that ranks Hollywood actors based on the number of their appearances in a list [...]
Display wishes depending on time when you open the console
Posted in Python, Scripts, tagged bashrc, Python, time on June 7, 2011 | 2 Comments »
Here is a python script to wish you Good Morning or Good Evening according to the time of the day. Now if you want to display it when you open the console add the following line to your ~/.bashrc file. python /path/to/the/script.py Happy Hacking!



