From: Yves Marcoz Date: Tue, 24 Jan 2012 07:46:50 +0000 (-0800) Subject: psa: fix wc().available() call X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;ds=sidebyside;h=9f2bf45866bc933b8f353daba0cb7d0a4f87aae5;p=feedingit psa: fix wc().available() call --- diff --git a/psa_harmattan/feedingit/pysrc/rss_sqlite.py b/psa_harmattan/feedingit/pysrc/rss_sqlite.py index 2fda0f5..9d5a24d 100644 --- a/psa_harmattan/feedingit/pysrc/rss_sqlite.py +++ b/psa_harmattan/feedingit/pysrc/rss_sqlite.py @@ -374,7 +374,7 @@ class Feed(BaseObject): def wc_success(): try: - if wc().available: + if wc().available(): wc().stream_register (self.key, "", 6 * 60 * 60) except woodchuck.ObjectExistsError: pass @@ -435,7 +435,7 @@ class Feed(BaseObject): ec = woodchuck.TransferStatus.TransientNetwork wc()[self.key].update_failed(ec) return doit - if wc().available: + if wc().available(): mainthread.execute( register_stream_update_failed( http_status=http_status), @@ -629,7 +629,7 @@ class Feed(BaseObject): transferred_up=sent, object_size=object_size) return doit - if wc().available: + if wc().available(): # If the entry does not contain a publication # time, the attribute won't exist. pubtime = entry.get('date_parsed', None) @@ -1353,7 +1353,7 @@ class Listing(BaseObject): self.cache_invalidate('categories') def removeFeed(self, key): - if wc().available (): + if wc().available(): try: del wc()[key] except KeyError, woodchuck.Error: