[Tutor] A problem, but where?

Deirdre Saoirse deirdre@deirdre.net
Mon, 4 Oct 1999 14:49:29 -0700 (PDT)

I have a program I'm working on that's a CGI and I've had this problem
crop up a few times. Before, I've worked around it but somehow I think
I've hit a genuine issue. I'm just not sure if it's me doing something
stupid (you know how hard it is to be objective about your own code).

The original code can be found at http://www.deirdre.org/ebaycgi.py and
the included structures can be found at

The problem occurs around line 277:

  print self.a.auctionId

In the parseRecord method, it prints self.a.auctionId twice. Correctly. It
is set the once and never re-set.

However, in the calling method, it is NOT set. This is what I get as


Auction No                   : 
Auction Title                : Recycled [etc.]

The first two lines are the parseRecord method's printing, the blank line
is line 278 (not printing), same on the right side of the colon.

Any ideas? I'm stumped.

_Deirdre   *   http://www.linuxcabal.net   *   http://www.deirdre.net
"I must say that I was really happy to see _Linux for Dummies_ -- that's 
when you know you've arrived." -- Linus Torvalds