Exemplo n.º 1
0
    def _getTasks(cls, fetch=20):
#        tasks = memcache.get('tasks')

#        if tasks:
#            return get_entity_from_protobuf(tasks)

        tasks = Task.all().order('-updated_on').fetch(fetch)
 #       memcache.set('tasks', get_protobuf_from_entity(tasks), 10 * 60)
        return tasks
Exemplo n.º 2
0
 def migrate_20110124(self):
     for task in Task.all():
         task.set_origin_name(task.origin_name)
         task.put()