Re: python newbie question

John Fabiani <[email protected]>
Newsgroups gmane.comp.gnu.enterprise.general
Message-ID <[email protected]>
OK now I understand a little about how gnue prints.  Gnue uses special filters 
for printing.  I got this info from the IRC.  

Also more goggle research has revealed how the cursor thing works.
I can create multi cursors as in:
myconnect = pgdb.connect(......)
cur_one = myconnect.execute("select .......")
cur_two= myconnect.execute("select.....")
cur_one.fetchall()
cur_two.fetchall()

If I'm wrong tell me please (it appears to work at python prompt)
Johnf

On Saturday 24 April 2004 00:16, John Fabiani wrote:
> OK I figured out the cursor thing!  I was using "import pg" and not "import
> pgdb".   But the I still understand the rest of my questions.
> John
>
> On Friday 23 April 2004 23:11, John Fabiani wrote:
> > Hi guys,
> > I know your not the pthyon group but the gnue group.  But I intend to
> > use the gnue forms, etc to get my work done.  I have just finished two
> > books on Python and have a question or two.
> >
> > 1.  I didn't see where either of the books discussed printing.  So how
> > does printing occur on a Linux box and a windows box?
> > 2. A little longer:  in the books they connected to MySQL  and used
> > cursors.  But I have postgres on a SUSE 9.0 linux - it uses "pg".  It
> > appears that "pg" does not have a cursor method/function -  is this
> > right?  If it is right - how do I see rows in the results from a query?
> > Next but not least in the book they always had a single sql statement
> > and filled the cursor.  But how do you handle the classic invoice header
> > and line items in one cursor.  Is it possible to make several
> > cursor/querys and then use the results?  But if  I have to make two
> > query calls does that mean I need two connections?  If not how does the
> > fetchnext() work with only one connection and two querys?
> >
> > Thanks all
> > John
> >
> >
> > _______________________________________________
> > Gnue mailing list
> > [email protected]
> > http://mail.gnu.org/mailman/listinfo/gnue
>
> _______________________________________________
> Gnue mailing list
> [email protected]
> http://mail.gnu.org/mailman/listinfo/gnue
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.