From: Eric S. Raymond Date: Wed, 20 Oct 2010 10:19:36 +0000 (-0400) Subject: Incomplete code for removing URLs that are not in the update. X-Git-Tag: 2.1~14 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=4eaed7be3ffb72a27278b4c5f354259da5b6dca5;p=freecode-submit.git Incomplete code for removing URLs that are not in the update. --- diff --git a/freshmeat-submit b/freshmeat-submit index 79730f7..e131afb 100755 --- a/freshmeat-submit +++ b/freshmeat-submit @@ -152,7 +152,13 @@ class FreshmeatSession: % (self.permalink,), "POST", {"url" : {"label": label, "location" : url}}) - + # Delete URLs that weren't in the update list + # FIXME: This cannot work yet: there's no auth code! + remove = set(permadict.keys()) - set(lambda x: x[0], urlassoc) + #for label in remove: + # self.edit_request("projects/%s/urls/%s.json" + # % (self.permalink, permadict[label]), + # "DELETE") class FreshmeatMetadataFactory: "Factory class for producing Freshmeat records in JSON." freshmeat_field_map = (