def post(self): mode = self.request.get("mode") e_key = self.request.get("key") base = tools.getKey(e_key).get() if mode == "contact": query = models.Donation.query(models.Donation.settings == base.settings, models.Donation.contact == base.key) query = tools.qCache(query) elif mode == "individual": query = base.data.donations elif mode == "team": query = base.data.donations for e in query: taskqueue.add(url="/tasks/delayindexing", params={'e': e.key.urlsafe()}, countdown=2, queue_name="delayindexing")
def teamlist_entities(self): q = TeamList.gql("WHERE individual = :i", i=self.key) return tools.qCache(q)