1.0 release

Sam Ruby rubys at intertwingly.net
Fri May 5 09:22:40 EST 2006


Mary Gardiner wrote:
> On Thu, May 04, 2006, Baz wrote:
> 
>>I've put patches up on launchpad for the windows problems. BTW is
>>there no handling of 302 responses in planet? I noticed in passing
>>that I had it in my local copy (which I'd messed with) but it doesnt
>>seem to be something that was changed by Sam's recent cleanup.
> 
> Note on https://launchpad.net/products/planet/+bug/42943/ that I think
> our handling of 301s is actually... well, not wrong, but sometimes
> inconvienient.
> 
> blogspot.com has been known to send 301 codes redirecting Planet to
> blogger.com/maintainence.html. Planet does not seem able to recover
> gracefully when the feed is back in place the next morning! Should we
> recover gracefully? If so, we need to rethink the "move/hardlink the
> cache file to the new location" logic.

Are you sure that they sent a 301 not a 302?  Planet used to treat them
both the same...

In any case, how about:

  if self.url_status == '301' and len(info.entries) > 0:

- Sam Ruby


More information about the devel mailing list