X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=psa_harmattan%2Ffeedingit%2Fpysrc%2Frss_sqlite.py;h=9d5a24d419d7b4b7ffcbc8a2a84bd5e551b20edf;hb=9f2bf45866bc933b8f353daba0cb7d0a4f87aae5;hp=2fda0f594f20a90e5e27ae9447f6111668a8cd65;hpb=e9b6d97afa02e67a6aae080e6820685d0a513af3;p=feedingit 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: