Login | Register
My pages Projects Community openCollabNet

Discussions > dev > confusion fixed

Project highlights: Stable Version: 1.6.1, Development Version: 1.7.6

current
Discussion topic

Back to topic list

confusion fixed

Reply

Author jaredgreenwald
Full name Jared Greenwald
Date 2006-10-02 16:31:09 PDT
Message -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ok, I figured out my problem. It was a little easier than I thought it
was, but it boils down to a difference between a list and something
acting like a list. In the end there's a slight bug in
setupBaseChannels. In any case, I'd suggest changing the following:

        result = resultSet(self.cursor)

to add a call to dump (thus dumping all channel entries):

        result = resultSet(self.cursor).dump()


The reason for this is that inside the for loop just below this
assignment, the cursor is being used in _updateInstalledPackages. Then
when we get back to the top of the for loop, the next() method is being
called and trying to access the original cursor. Calling dump() gets
all of the entries loaded into a list from the start.

Thoughts?

- -Jared
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFIaE9u4z7Xptg​TUYRAgFYAJ0dCO3v5QMn​DC90vhd5wtwEenRObwCf​a7HF
+TzZ0PTumf2TIbp0+WN5D9o=
=nKUA
-----END PGP SIGNATURE-----

« Previous message in topic | 1 of 3 | Next message in topic »

Messages

Show all messages in topic

confusion fixed jaredgreenwald Jared Greenwald 2006-10-02 16:31:09 PDT
     Re: confusion fixed theslack Jack Neely 2006-10-02 16:44:15 PDT
         Re: confusion fixed jaredgreenwald Jared Greenwald 2006-10-02 18:20:24 PDT
Messages per page: