How can I reduce the number of queries to my PostgreSQL database?

2006-04-08 Thread SR
As a starter project for learning Python/PostgreSQL, I am building a Books database that stores information on the books on my bookshelf. Say I have three tables. Table "books" contains rows for book_id, title, subtitle, ISBN. Table "authors" contains rows for author_id, author surname, author f

Re: How can I reduce the number of queries to my PostgreSQL database?

2006-04-11 Thread SR
Martin Christensen said: >SR> Scenario: I have a python script which creates web page listing >SR> all books in the database, and all authors for each book. My >SR> python script does essentially three things: > >SR> 1. retrieve a list of all book_ids and book_titles.

Re: How can I reduce the number of queries to my PostgreSQL database?

2006-04-11 Thread SR
>> Say I have three tables. > > Only three? Well, yeah, OK, it's more than that, but after years of being worn away by "Post a minimal example" requests on comp.text.tex, a minimal example is what you got... > Something like {untested... Might need to do a subselect for the > sec

Re: Class Not Auto-Init On Import

2007-04-21 Thread Parthan SR
On 4/21/07, Robert Rawlins - Think Blue <[EMAIL PROTECTED]> wrote: Hello Guys, From my understanding of what I've read, the 'import' is meant to auto Init my class ready for me to access its methods, but it doesn't appear too, I'm having to init them myself before I can access them, like this.

Re: python on window

2007-03-26 Thread Parthan SR
On 26 Mar 2007 05:00:54 -0700, sandeep patil <[EMAIL PROTECTED]> wrote: i have written this program but i have gott following error, in anather proram "indentation error" sir how i will indent in my editor #test.py >>> def invert(table): index=() for key in table:

Re: help with dates

2007-04-01 Thread Parthan SR
On 31 Mar 2007 14:21:23 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I'm working on a website for some firefighters that want to be able to sign-up for overtime and I need some help figuring out a date related problem. Here's the scenario: Four groups of firefighters (group1, group2, g

Re: Python editor/IDE on Linux?

2007-04-13 Thread Parthan SR
OMG, all of you forgot IDLE ? http://www.python.org/idle/ It is very good for the starters and it looks simple. There are also Eric http://www.die-offenbachs.de/detlev/eric.html and SPE IDE http://pythonide.stani.be/ And there is always the uber cool editor (aka OS), Emacs :) -- With Regards

Re: Qt4 in ubuntu

2007-04-15 Thread Parthan SR
On 15 Apr 2007 13:24:22 -0700, Marcpp <[EMAIL PROTECTED]> wrote: Is possible install Qt4 pyqt4 under kubuntu? Few times ago i tried to run pyqt in ubuntu (gnome) but i can't do it. Installation as in [1] Installing using the apt-get/synaptic/adept/aptitude which is present in Ubuntu/Kubuntu o

Re: **argv can't work

2007-01-19 Thread Parthan SR
On 1/20/07, Jm lists <[EMAIL PROTECTED]> wrote: hello members, See my script piece below: def testB(shift,**argv): print "first argument is %s" %shift print "all other arguments are:",argv testB('mails','Jen','[EMAIL PROTECTED]','Joe','[EMAIL PROTECTED]') It can't work at all.please

Re: Windows 7 : any problems installing or running Python ?

2010-01-02 Thread David M Covey Sr.
you have any suggestions that might help me out here? I would really appreciate your input. Thank you, David M Covey Sr. ad...@daffitt.com -- http://mail.python.org/mailman/listinfo/python-list