Ejemplo n.º 1
0
 def getReadData(self, feedUrl, ud):
     readDataAttr = 'readData__' + ud.app_username + \
         '__' + str(feedUrl).translate(None, '.')
     readData = ReadData.get_by_id(readDataAttr)
     if readData is not None:
         return readData.readData, readData.readCount
     else:
         return '', 0
Ejemplo n.º 2
0
    def getReadData(self, feedUrl):
        readDataAttr = 'readData__' + self.ud.app_username + \
            '__' + str(feedUrl).translate(None, '.')
        readData = ReadData.get_by_id(readDataAttr)
        if readData is None:
            readData = ReadData(app_username=self.ud.app_username, feedUrl=feedUrl, readData='', readCount=0, id=readDataAttr)
            readData.put()

        return readData