Comment 0 for bug 612351

Revision history for this message
James Westby (james-w) wrote : getPackagesetsForUploader uses Store.find, which doesn't return an SQLObjectResultSet

Hi,

getPackagesetsForUploader uses Store.find, which doesn't return an SQLObject
result set.

This breaks assumptions, such as __nonzero__ being implemented, which caused
a (small) bug in checkUpload().

Either it should be made to use a different method, or something should be done
so that Launchpad's Stores return SQLObjectResult sets, as this is surprising and
subtle, and could cause bigger problems.

Thanks,

James