comparison backend/couchdb/Preferences.py @ 172:214addba1f93

always return an int value for daysToKeepFeedEntries
author dirk
date Fri, 09 Sep 2011 17:17:39 +0200
parents 91a24f499318
children 2c91b5653878
comparison
equal deleted inserted replaced
171:27be2a5f9c10 172:214addba1f93
76 76
77 def setHideReadFeedEntries(self, flag): 77 def setHideReadFeedEntries(self, flag):
78 self._setDocumentValue(HIDE_READ_FEED_ENTRIES, flag) 78 self._setDocumentValue(HIDE_READ_FEED_ENTRIES, flag)
79 79
80 def daysToKeepFeedEntries(self): 80 def daysToKeepFeedEntries(self):
81 return self._documentValue(DAYS_TO_KEEP_FEED_ENTRIES, 90) 81 value = self._documentValue(DAYS_TO_KEEP_FEED_ENTRIES, 90)
82 return int(value)
82 83
83 def setDaysToKeepFeedEntries(self, days): 84 def setDaysToKeepFeedEntries(self, days):
84 self._setDocumentValue(DAYS_TO_KEEP_FEED_ENTRIES, days) 85 self._setDocumentValue(DAYS_TO_KEEP_FEED_ENTRIES, days)
85 86
86 def commit(self): 87 def commit(self):