Esempio n. 1
0
 def retrieve(self, key):
     item = memcache.get(key)
     if item is not None:
         return item
     else:
         item = self.convertToRssItems( MatchedFile.all().order("-date").fetch(25) )
         if item is not None and not memcache.add(key, item):
             logging.error("Memcache set failed on %s" % key)
     return item
Esempio n. 2
0
 def retrieve(self, key):
     item = memcache.get(key)
     if item is not None:
         return item
     else:
         item = self.convertToRssItems(
             MatchedFile.all().order("-date").fetch(25))
         if item is not None and not memcache.add(key, item):
             logging.error("Memcache set failed on %s" % key)
     return item
Esempio n. 3
0
 def data(self):
     return MatchedFile.all().order("-date").fetch(1000)
Esempio n. 4
0
 def data(self):
     return MatchedFile.all().order("-date").fetch(1000)