projects
/
feedingit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e9b6d97
)
psa: fix wc().available() call
author
Yves Marcoz
<yves@marcoz.org>
Tue, 24 Jan 2012 07:46:50 +0000
(23:46 -0800)
committer
Yves Marcoz
<yves@marcoz.org>
Tue, 24 Jan 2012 07:46:50 +0000
(23:46 -0800)
psa_harmattan/feedingit/pysrc/rss_sqlite.py
patch
|
blob
|
history
diff --git
a/psa_harmattan/feedingit/pysrc/rss_sqlite.py
b/psa_harmattan/feedingit/pysrc/rss_sqlite.py
index
2fda0f5
..
9d5a24d
100644
(file)
--- 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:
def wc_success():
try:
- if wc().available:
+ if wc().available():
wc().stream_register (self.key, "", 6 * 60 * 60)
except woodchuck.ObjectExistsError:
pass
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
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),
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
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)
# 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):
self.cache_invalidate('categories')
def removeFeed(self, key):
- if wc().available ():
+ if wc().available():
try:
del wc()[key]
except KeyError, woodchuck.Error:
try:
del wc()[key]
except KeyError, woodchuck.Error: