From 9f2bf45866bc933b8f353daba0cb7d0a4f87aae5 Mon Sep 17 00:00:00 2001 From: Yves Marcoz Date: Mon, 23 Jan 2012 23:46:50 -0800 Subject: [PATCH] psa: fix wc().available() call --- psa_harmattan/feedingit/pysrc/rss_sqlite.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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: -- 1.7.9.5